1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-26 23:24:11 +00:00
rtl8812au/runwpa

21 lines
415 B
Plaintext
Raw Normal View History

2018-06-22 16:48:32 +00:00
#!/bin/bash
2018-06-22 19:43:50 +00:00
if [ "`which iwconfig`" = "" ] ; then
2018-06-22 16:48:32 +00:00
echo "WARNING:Wireless tool not exist!"
echo " Please install it!"
exit
else
if [ `uname -r | cut -d. -f2` -eq 4 ]; then
2018-06-22 19:43:50 +00:00
wpa_supplicant -D ipw -c wpa1.conf -i wlan0
2018-06-22 16:48:32 +00:00
else
if [ `iwconfig -v |awk '{print $4}' | head -n 1` -lt 18 ] ; then
2018-06-22 19:43:50 +00:00
wpa_supplicant -D ipw -c wpa1.conf -i wlan0
else
wpa_supplicant -D wext -c wpa1.conf -i wlan0
2018-06-22 16:48:32 +00:00
fi
fi
fi