diff options
author | lassulus <lassulus@googlemail.com> | 2013-05-24 17:21:06 +0200 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-05-24 17:21:06 +0200 |
commit | 3e470a16a125aea2b77388db8bf9758190f5b881 (patch) | |
tree | 55d46eef9ff5b686c08c825bcf03fa274709d7e7 | |
parent | 2f2311697d0c448717db34998ca497d245c28bca (diff) |
now working profile managment
-rwxr-xr-x | usr/lib/autowifi/00profile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/lib/autowifi/00profile b/usr/lib/autowifi/00profile index 4d2a9a82..fe42470b 100755 --- a/usr/lib/autowifi/00profile +++ b/usr/lib/autowifi/00profile @@ -1,9 +1,8 @@ #!/bin/sh #ESSID MAC CHANNEL ENCRYPTION WPA WPA2 -cat /etc/autowifi/wifi_keys | while IFS='|' read SSID MAC KEY; do +cat /etc/autowifi/wifi_keys | (while IFS='|' read SSID MAC KEY; do if [ "$1" == "$SSID" -a "$2" == "$MAC" ]; then echo $KEY exit 0 fi -done -exit 1 +done; exit 1) |