Update install.sh

This commit is contained in:
Erreur32 2017-07-21 01:13:06 +02:00
parent 629161b683
commit aa26a92cb8

View file

@ -63,7 +63,7 @@ fi
echo -e "\n\e[34mInstallation of in progress... \e[0m" echo -e "\n\e[34mInstallation of in progress... \e[0m"
## Install command in bashrc ## Install command in bashrc
echo -ne '##### (33%)\r'
sleep 1 sleep 1
if [ `grep -c /etc/motd /root/.bashrc` == 0 ] if [ `grep -c /etc/motd /root/.bashrc` == 0 ]
@ -77,7 +77,7 @@ grep -n '/etc/motd' /root/.bashrc
#sed -i '/cat \/etc\/motd/d' /root/.bashrc #sed -i '/cat \/etc\/motd/d' /root/.bashrc
#echo -e "\e[92m Code .bashrc remove.\e[0m" #echo -e "\e[92m Code .bashrc remove.\e[0m"
fi fi
echo -ne '######### (50%)\r'
sleep 1 sleep 1
## Insdtall modules ## Insdtall modules
@ -90,7 +90,7 @@ if [ -f "/etc/motds32/Stats32" ]
cp Stats32 /etc/motds32/Stats32 -Rf cp Stats32 /etc/motds32/Stats32 -Rf
fi fi
echo -ne '##### (33%)\r'
if [ -f /usr/bin/motd ] if [ -f /usr/bin/motd ]
then then
echo -e " -->\e[34m motd already installed\e[0m" echo -e " -->\e[34m motd already installed\e[0m"
@ -98,8 +98,10 @@ if [ -f /usr/bin/motd ]
ln -s /usr/bin/motds32 /usr/bin/motd ln -s /usr/bin/motds32 /usr/bin/motd
fi fi
echo -ne '############ (65%)\r'
echo -e " -->\e[34m Copy files OK\n" echo -e " -->\e[34m Copy files OK\n"
echo -ne '######### (50%)\r\n'
echo -e "\nDo you wish to install the required package?\n \e[0m --> apt-get install ntp figlet ? (y/n) " echo -e "\nDo you wish to install the required package?\n \e[0m --> apt-get install ntp figlet ? (y/n) "
old_stty_cfg=$(stty -g) old_stty_cfg=$(stty -g)
stty raw -echo stty raw -echo