mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-12 17:17:29 +00:00
d62c22e76e
filename: rtl8812AU_8821AU_linux_v4.3.22_15054.20150901_beta.tar.gz Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
21 lines
423 B
Bash
Executable File
21 lines
423 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "`which iwconfig`" = "" ] ; then
|
|
echo "WARNING:Wireless tool not exist!"
|
|
echo " Please install it!"
|
|
exit
|
|
else
|
|
if [ `uname -r | cut -d. -f2` -eq 4 ]; then
|
|
wpa_supplicant -D ipw -c wpa1.conf -i wlan0
|
|
else
|
|
if [ `iwconfig -v |awk '{print $4}' | head -n 1` -lt 18 ] ; then
|
|
wpa_supplicant -D ipw -c wpa1.conf -i wlan0
|
|
else
|
|
wpa_supplicant -D wext -c wpa1.conf -i wlan0
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
|
|
|