From d7838be6daff26d2e380b2fd9ace4ca9a844925d Mon Sep 17 00:00:00 2001 From: strasharo Date: Thu, 24 Mar 2016 20:38:59 +0200 Subject: [PATCH] add rfkill check --- fluxion | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fluxion b/fluxion index 82e9209..e7f193d 100755 --- a/fluxion +++ b/fluxion @@ -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