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
|
## Install command in bashrc
|
||||||
|
|
||||||
sleep 1
|
|
||||||
|
|
||||||
if [ `grep -c /etc/motd /root/.bashrc` == 0 ]
|
if [ `grep -c /etc/motd /root/.bashrc` == 0 ]
|
||||||
then
|
then
|
||||||
|
@ -77,9 +77,9 @@ 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 '## (10%)\r'
|
||||||
sleep 1
|
sleep 1
|
||||||
|
echo -ne "\n"
|
||||||
## Insdtall modules
|
## Insdtall modules
|
||||||
|
|
||||||
if [ -f "/etc/motds32/Stats32" ]
|
if [ -f "/etc/motds32/Stats32" ]
|
||||||
|
@ -90,7 +90,8 @@ 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"
|
||||||
|
@ -101,7 +102,8 @@ fi
|
||||||
|
|
||||||
echo -e " -->\e[34m Copy files OK\n"
|
echo -e " -->\e[34m Copy files OK\n"
|
||||||
echo -ne '######### (50%)\r'
|
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) "
|
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
|
||||||
|
@ -131,6 +133,7 @@ stty $old2_stty_cfg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -ne '##################(90%)\r'
|
echo -ne '##################(90%)\r'
|
||||||
|
sleep 1
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
## Install Crontab
|
## Install Crontab
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue