summaryrefslogtreecommitdiffstats
path: root/usr/lib
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-05-24 13:24:52 +0200
committerlassulus <lassulus@googlemail.com>2013-05-24 13:24:52 +0200
commit631986deaf81a4641578d1d878f66d2e1a622396 (patch)
tree618c2175ea1030a7d3d52fa07c7c4519143f1785 /usr/lib
parent5f7f912c13b1fc137b7a29a4083082d9efcc9b40 (diff)
new profiles & autowifi
Diffstat (limited to 'usr/lib')
-rwxr-xr-xusr/lib/autowifi/00profile9
-rwxr-xr-xusr/lib/autowifi/01open5
2 files changed, 14 insertions, 0 deletions
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
diff --git a/usr/lib/autowifi/01open b/usr/lib/autowifi/01open
new file mode 100755
index 00000000..da94cc98
--- /dev/null
+++ b/usr/lib/autowifi/01open
@@ -0,0 +1,5 @@
+#!/bin/sh
+#ESSID MAC CHANNEL ENCRYPTION WPA WPA2
+if ! [ "$4" == "none" ]; then
+ exit 1
+fi