From 9c7f98aa0ac224c147a3ed5055afde16949ea202 Mon Sep 17 00:00:00 2001 From: Lassulus Date: Fri, 28 Dec 2012 05:10:57 +0100 Subject: fixed ssid password read and blacklist check --- minikrebs/ImageBuilder/customfiles/usr/bin/aap | 8 ++++---- 1 file 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) { -- cgit v1.2.3