From fa5853ff0e6420b5b671c08c164f89c1a34b94aa Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Sun, 30 Jul 2017 14:45:18 +0200 Subject: [PATCH] Update install.sh --- install.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index 6cbde8f..d216821 100755 --- a/install.sh +++ b/install.sh @@ -84,14 +84,7 @@ grepmot=`grep '/etc/motd' /root/.bashrc` fi ## Insdtall modules -command -v figlet >/dev/null 2>&1 || { echo >&2 "Figlet is not installed."; echo "need to install figlet /y"; } -if [ -f "/usr/share/figlet" ] - then - echo -e " -->\e[31m figlet not FOUND\e[0m" - else - echo -e " -->\e[34m Copy font figlet \e[92mOK\e[0m" - cp -Rf fonts/chunky.flf /usr/share/figlet/ -fi + # Check if MOTDs32 is already add if [ -f "/etc/motds32/Stats32" ] @@ -149,6 +142,14 @@ stty $old2_stty_cfg fi fi +#command -v figlet >/dev/null 2>&1 || { echo >&2 "Figlet is not installed."; echo "need to install figlet /y"; } +if [ -f "/usr/share/figlet" ] + then + echo -e " -->\e[31m figlet not FOUND\e[0m" + else + cp -Rf fonts/chunky.flf /usr/share/figlet/ + echo -e " -->\e[34m Font figlet \e[92mOK\e[0m" +fi # Check motd if [ -f "/usr/bin/motd" ]