diff options
author | Lassulus <lassulus@googlemail.com> | 2012-12-28 05:10:57 +0100 |
---|---|---|
committer | Lassulus <lassulus@googlemail.com> | 2012-12-28 05:10:57 +0100 |
commit | 9c7f98aa0ac224c147a3ed5055afde16949ea202 (patch) | |
tree | 82b75d56aa5e4825e04fd53a4b3063615fc037f2 | |
parent | 1aa5bf4c3c30c474c081bcb8d89a4f06fd3e6e86 (diff) |
fixed ssid password read and blacklist check
-rwxr-xr-x | minikrebs/ImageBuilder/customfiles/usr/bin/aap | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/minikrebs/ImageBuilder/customfiles/usr/bin/aap b/minikrebs/ImageBuilder/customfiles/usr/bin/aap index f9d5cd99..75e1cbfe 100755 --- a/minikrebs/ImageBuilder/customfiles/usr/bin/aap +++ b/minikrebs/ImageBuilder/customfiles/usr/bin/aap @@ -41,16 +41,16 @@ BEGIN { rkey=""; # first we see if we're in blacklist bl="0" - "cat /etc/wifiblack | grep \"" essid "\"" | getline bl - close("cat /etc/wifiblack | grep \"" essid "\"") + "cat /etc/wifiblack | grep \"" essid "$\"" | getline bl + close("cat /etc/wifiblack | grep \"" essid "$\"") if ( bl == "1" ) { print essid " blacklisted"; continue; } # now we get key if we're encrypted if ( crypt != "none" ) { - "cat /etc/wifipw | grep \"" essid "\" | sed 's/[^;]*;//' " | getline rkey - close("cat /etc/wifipw | grep \"" essid "\" | sed 's/.*;//' ") + "cat /etc/wifipw | grep \"" essid ";\" | sed 's/[^;]*;//' " | getline rkey + close("cat /etc/wifipw | grep \"" essid ";\" | sed 's/.*;//' ") if ( rkey == "" ) { m=match(essid,"EasyBox"); if (RLENGTH > 0) { |