blob: fe42470b2a753bfd1465a7015c6a1f8bb34fb08b (
plain)
1
2
3
4
5
6
7
8
|
#!/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)
|