Update unisntall.sh

This commit is contained in:
Erreur32 2017-07-20 20:53:52 +02:00
parent e6800f9fdf
commit 5f5442595c
1 changed files with 30 additions and 0 deletions

View File

@ -5,9 +5,39 @@
# make sur this file is executable +x
## clean terminal
clear;
cat <<"EOF"
| + |
,--. ,--. ,-----. ,--------.,------. ,----. ,---.
| `.' |' .-. ''--. .--'| .-. \ ,---. '.-. |'.-. \
| |'.'| || | | | | | | | \ :( .-' .' ; .-' .'
| | | |' '-' ' | | | '--' /.-' `)/'-' |/ '-.
`--' `--' `-----' `--' `-------' `----' `----' '-----'
By
# 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 in progress... \e[0m"
## remove all stuff
make uninstall
rm /etc/motds32/ -Rf
rm /usr/bin/motd -f
echo -e "\n\e[92m removed \e[0m"