summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/rtl8188EUS_rtl8189ES_linux_v4.1.7_9024.20130916/runwpa
diff options
context:
space:
mode:
authorSrikant Patnaik2015-01-11 12:28:04 +0530
committerSrikant Patnaik2015-01-11 12:28:04 +0530
commit871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch)
tree8718f573808810c2a1e8cb8fb6ac469093ca2784 /drivers/net/wireless/rtl8188EUS_rtl8189ES_linux_v4.1.7_9024.20130916/runwpa
parent9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff)
downloadFOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure.
Diffstat (limited to 'drivers/net/wireless/rtl8188EUS_rtl8189ES_linux_v4.1.7_9024.20130916/runwpa')
-rwxr-xr-xdrivers/net/wireless/rtl8188EUS_rtl8189ES_linux_v4.1.7_9024.20130916/runwpa20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtl8188EUS_rtl8189ES_linux_v4.1.7_9024.20130916/runwpa b/drivers/net/wireless/rtl8188EUS_rtl8189ES_linux_v4.1.7_9024.20130916/runwpa
new file mode 100755
index 00000000..f825e8bd
--- /dev/null
+++ b/drivers/net/wireless/rtl8188EUS_rtl8189ES_linux_v4.1.7_9024.20130916/runwpa
@@ -0,0 +1,20 @@
+#!/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
+
+