Added check for AP mode support

pull/225/head
Colin Kuebler 2019-10-12 17:09:46 -04:00
parent 707636357c
commit 5e3db7e4d9
1 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,12 @@
# Source config
. ../config.txt
if ! iw list | grep -q "* AP"; then
echo "AP mode not supported!"
echo "Please attach a WiFi card that supports AP mode."
exit 1
fi
echo -n "Checking for network interface $WLAN... "
if [ -e /sys/class/net/$WLAN ]; then
echo "Found."