From 631986deaf81a4641578d1d878f66d2e1a622396 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 24 May 2013 13:24:52 +0200 Subject: new profiles & autowifi --- usr/lib/autowifi/00profile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 usr/lib/autowifi/00profile (limited to 'usr/lib/autowifi/00profile') diff --git a/usr/lib/autowifi/00profile b/usr/lib/autowifi/00profile new file mode 100755 index 00000000..4d2a9a82 --- /dev/null +++ b/usr/lib/autowifi/00profile @@ -0,0 +1,9 @@ +#!/bin/sh +#ESSID MAC CHANNEL ENCRYPTION WPA WPA2 +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 -- cgit v1.2.3