summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-05-24 17:21:06 +0200
committerlassulus <lassulus@googlemail.com>2013-05-24 17:21:06 +0200
commit3e470a16a125aea2b77388db8bf9758190f5b881 (patch)
tree55d46eef9ff5b686c08c825bcf03fa274709d7e7
parent2f2311697d0c448717db34998ca497d245c28bca (diff)
now working profile managment
-rwxr-xr-xusr/lib/autowifi/00profile5
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)