Update install.sh
This commit is contained in:
parent
da722bfba1
commit
ced8888cc0
1 changed files with 8 additions and 5 deletions
13
install.sh
13
install.sh
|
@ -64,7 +64,7 @@ echo -e "\n\e[34mInstallation of MOTDs32 in progress... \e[0m"
|
|||
|
||||
## Install command in bashrc
|
||||
|
||||
sleep 1
|
||||
|
||||
|
||||
if [ `grep -c /etc/motd /root/.bashrc` == 0 ]
|
||||
then
|
||||
|
@ -77,9 +77,9 @@ grep -n '/etc/motd' /root/.bashrc
|
|||
#sed -i '/cat \/etc\/motd/d' /root/.bashrc
|
||||
#echo -e "\e[92m Code .bashrc remove.\e[0m"
|
||||
fi
|
||||
|
||||
echo -ne '## (10%)\r'
|
||||
sleep 1
|
||||
|
||||
echo -ne "\n"
|
||||
## Insdtall modules
|
||||
|
||||
if [ -f "/etc/motds32/Stats32" ]
|
||||
|
@ -90,7 +90,8 @@ if [ -f "/etc/motds32/Stats32" ]
|
|||
cp Stats32 /etc/motds32/Stats32 -Rf
|
||||
|
||||
fi
|
||||
echo -ne '##### (33%)\r'
|
||||
|
||||
|
||||
if [ -f /usr/bin/motd ]
|
||||
then
|
||||
echo -e " -->\e[34m motd already installed\e[0m"
|
||||
|
@ -101,7 +102,8 @@ fi
|
|||
|
||||
echo -e " -->\e[34m Copy files OK\n"
|
||||
echo -ne '######### (50%)\r'
|
||||
echo -e "\n"
|
||||
sleep 1
|
||||
echo -ne "\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)
|
||||
stty raw -echo
|
||||
|
@ -131,6 +133,7 @@ stty $old2_stty_cfg
|
|||
fi
|
||||
|
||||
echo -ne '##################(90%)\r'
|
||||
sleep 1
|
||||
echo -e "\n"
|
||||
## Install Crontab
|
||||
|
||||
|
|
Loading…
Reference in a new issue