additional comment
[wilink8-wlan/wl18xx-target-scripts.git] / mr / aGO_remove.sh
1 #!/system/bin/sh
2 # System Test ; Script version = 1.2
3 # Change in 1.2 : Get PID function improved
5 INSMOD=/system/bin/insmod
6 RMMOD=/system/bin/rmmod
7 IFCONFIG=/system/bin/ifconfig
8 WPA_CLI=/system/bin/wpa_cli
9 IW=/system/bin/iw
11 WLAN_IF=p2p_wlan0
12 WLAN_IF_MON=mon.$WLAN_IF
13 WLAN_PID=`ps | grep [p2p_]wlan0 | cut -c1-5`
15 SERVICE_SUPPLICANT=wpa_supplicant
17 echo "unload supplicant"
18 kill $WLAN_PID
19 sleep 1
21 echo "disable interface"
22 $IFCONFIG $WLAN_IF down
23 $IFCONFIG $WLAN_IF_MON down
24 sleep 1
26 echo "Removing interface"
27 $IW $WLAN_IF del
28 sleep 1