Files
rtl8189ES_linux/runwpa
Jens Rehsack 52ee638811 Initially import rtl8189ES linux driver v4.3.18.1
Since the driver itself is licensed under GPLv2+, we can manage it in public git repository

Signed-off-by: Jens Rehsack <sno@netbsd.org>
2015-10-06 17:58:21 +02:00

21 lines
423 B
Bash

#!/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