add rfkill check

This commit is contained in:
strasharo 2016-03-24 20:38:59 +02:00
parent fe74db89ae
commit d7838be6da
1 changed files with 9 additions and 0 deletions

View File

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