From 5f5442595c5a56ebc80b1e89a26d475caedbf9b3 Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Thu, 20 Jul 2017 20:53:52 +0200 Subject: [PATCH] Update unisntall.sh --- unisntall.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/unisntall.sh b/unisntall.sh index 1abbee5..ccc46b8 100755 --- a/unisntall.sh +++ b/unisntall.sh @@ -5,9 +5,39 @@ # make sur this file is executable +x +## clean terminal +clear; + +cat <<"EOF" + + Installation of MOTDs32 | + Stats32 | + + ,--. ,--. ,-----. ,--------.,------. ,----. ,---. + | `.' |' .-. ''--. .--'| .-. \ ,---. '.-. |'.-. \ + | |'.'| || | | | | | | | \ :( .-' .' ; .-' .' + | | | |' '-' ' | | | '--' /.-' `)/'-' |/ '-. + `--' `--' `-----' `--' `-------' `----' `----' '-----' + + By Erreur32 + +# MOTDstat is dynamicaly refreshing the /etc/motd file with current informations +# about system status and usage. + +EOF + +# Make sure only root can run our script +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" 1>&2 + exit 1 +fi + +echo -e "\n\e[34m Dsinstallation of MOTDs32 in progress... \e[0m" + + ## remove all stuff make uninstall rm /etc/motds32/ -Rf rm /usr/bin/motd -f +echo -e "\n\e[92m MOTDs32 removed \e[0m"