first commit

This commit is contained in:
Erreur32 2020-05-18 10:55:52 +02:00
parent dbefa91957
commit f3b0bc662a

View file

@ -76,26 +76,21 @@ echo -e "\e[90m # MOTDs32 is dynamicaly refreshing the /etc/motd file with curre
echo -e "\e[90m # about system status and usage."
echo -e "\n\e[34m Check dependencies... \n"
# Check dependenciess
echo -e "\e[34m Check required dependencies ! (need to be installed)"
check_depend(){
# Check installed
if [ -f "/usr/sbin/sendmail" ]
if [ -f "/usr/sbin/sendmail" ]
then
echo -e " \e[34m- Posfix \e[32m✔ installed."
else
echo -e " \e[34m- Select option 1 \e[91m Missing package !!"
fi
if [ -f "/usr/share/build-essential/essential-packages-list" ]
fi
if [ -f "/usr/share/build-essential/essential-packages-list" ]
then
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 !!"
fi
fi
# Check files
if hash figlet 2>/dev/null; then
@ -114,16 +109,21 @@ echo -e " \e[34m- build-essential \e[32m✔ installed."
echo -e " \e[34m- build-essential \e[1;31mSelect option 1 \e[91m Missing package !!"
fi
}
# Check dependenciess
echo -e "\n YOU CAN SKIP (auto) install if you want"
check_depend || echo -e "\e[34m Check required dependencies ! (need to be installed)"
echo -e "\n\e[32;3m YOU CAN SKIP (auto) install if you want"
echo -e "\n\e[92m Please Select:"
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[33;3m"
echo -e " 1. \e[97m(auto) Install Missing Package\e[92m"
echo -e " 2. \e[97mInstallation MOTDs32 script\e[92m"
echo -e " 3. \e[97mUpdate MOTDs32 script\e[92m"
echo -e " 4. \e[97mUninstall completly MOTDs32 script\e[92m"
echo -e " 0. \e[97m(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"
echo -e "\e[97m"
# Clear area beneath menu
tput cup 10 0