check for strings presence

This commit is contained in:
root 2016-09-02 23:04:49 +03:00
parent e8a2ded68f
commit 9accc28c2c
2 changed files with 19 additions and 0 deletions

View File

@ -352,5 +352,14 @@ else
fi
sleep 0.025
##############################
echo -ne "strings.........."
if ! hash strings 2>/tmp/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Zenity" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install binutils
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
xterm $HOLD -title "Remove repositories" -e python remove.py

10
fluxion
View File

@ -512,6 +512,16 @@ function checkdependences {
fi
sleep 0.025
echo -ne "strings.........."
if ! hash strings 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent" (binutils)"
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
if [ "$exit" = "1" ]; then
exit 1
fi