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