first commit

This commit is contained in:
Erreur32 2020-05-18 10:51:10 +02:00
parent 6eda9a4ac1
commit dbefa91957

View file

@ -74,7 +74,7 @@ EOFMO2
echo -e "\e[90m # MOTDs32 is dynamicaly refreshing the /etc/motd file with current informations"
echo -e "\e[90m # about system status and usage."
echo -e "\n\e[34m Check dependencies... \e[0m\n"
echo -e "\n\e[34m Check dependencies... \n"
# Check dependenciess
@ -83,35 +83,35 @@ echo -e "\e[34m Check required dependencies ! (need to be installed)"
# Check installed
if [ -f "/usr/sbin/sendmail" ]
then
echo -e " \e[34m- Posfix \e[32m✔ installed.\e[0m"
echo -e " \e[34m- Posfix \e[32m✔ installed."
else
echo -e " \e[34m- Select option 1 \e[91m Missing package !! \e[0m\n"
echo -e " \e[34m- Select option 1 \e[91m Missing package !!"
fi
if [ -f "/usr/share/build-essential/essential-packages-list" ]
then
echo -e " \e[34m- build-dep \e[32m✔ installed.\e[0m"
echo -e " \e[34m- build-dep \e[32m✔ installed."
else
echo -e " \e[34m- build-dep \e[1;31mSelect option 1 \e[91m Missing package !!\e[0m"
echo -e " \e[34m- build-dep \e[1;31mSelect option 1 \e[91m Missing package !!"
fi
# Check files
if hash figlet 2>/dev/null; then
echo -e " \e[34m- Figlet \e[32m✔ installed.\e[0m"
echo -e " \e[34m- Figlet \e[32m✔ installed."
else
echo -e " \e[34m- Figlet \e[1;31m Select option 1 \e[91m Missing package !!\e[0m"
echo -e " \e[34m- Figlet \e[1;31m Select option 1 \e[91m Missing package !!"
fi
if hash ntpd 2>/dev/null; then
echo -e " \e[34m- NTP \e[32m✔ installed.\e[0m"
echo -e " \e[34m- NTP \e[32m✔ installed."
else
echo -e " \e[34m- NTP \e[1;31mSelect option 1 \e[91m Missing package !!\e[0m"
echo -e " \e[34m- NTP \e[1;31mSelect option 1 \e[91m Missing package !!"
fi
if hash make 2>/dev/null; then
echo -e " \e[34m- build-essential \e[32m✔ installed.\e[0m"
echo -e " \e[34m- build-essential \e[32m✔ installed."
else
echo -e " \e[34m- build-essential \e[1;31mSelect option 1 \e[91m Missing package !!\e[0m"
echo -e " \e[34m- build-essential \e[1;31mSelect option 1 \e[91m Missing package !!"
fi
@ -121,9 +121,9 @@ echo -e " 1. \e[0m(auto) Install Missing Package\e[92m"
echo -e " 2. \e[0mInstallation MOTDs32 script\e[92m"
echo -e " 3. \e[0mUpdate MOTDs32 script\e[92m"
echo -e " 4. \e[0mUninstall completly MOTDs32 script\e[92m"
echo -e " 0. \e[0m(Enter or any key) to Quit\n \e[0m"
echo -e " 0. \e[0m(Enter or any key) to Quit\n\e[33;3m"
read -p " Enter selection [0-3] or (Enter) to Quit > " selection
echo -e "\e[0m"
# Clear area beneath menu
tput cup 10 0