Update install.sh
This commit is contained in:
parent
629161b683
commit
aa26a92cb8
1 changed files with 6 additions and 4 deletions
10
install.sh
10
install.sh
|
@ -63,7 +63,7 @@ fi
|
||||||
echo -e "\n\e[34mInstallation of MOTDs32 in progress... \e[0m"
|
echo -e "\n\e[34mInstallation of MOTDs32 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
|
||||||
|
|
Loading…
Reference in a new issue