From 3e470a16a125aea2b77388db8bf9758190f5b881 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 24 May 2013 17:21:06 +0200 Subject: now working profile managment --- usr/lib/autowifi/00profile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr/lib/autowifi') 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) -- cgit v1.2.3