summaryrefslogtreecommitdiffstats
path: root/usr/lib/autowifi/00profile
diff options
context:
space:
mode:
Diffstat (limited to 'usr/lib/autowifi/00profile')
-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)