]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - wilink8-wlan/wl18xx-target-scripts.git/blob - mr/sta_remove.sh
mr scripts v1
[wilink8-wlan/wl18xx-target-scripts.git] / mr / sta_remove.sh
1 #!/system/bin/sh
3 INSMOD=/system/bin/insmod
4 RMMOD=/system/bin/rmmod
5 IFCONFIG=/system/bin/ifconfig
6 WPA_CLI=/system/bin/wpa_cli
7 IW=/system/bin/iw
9 WLAN_IF=wlan0
11 SERVICE_SUPPLICANT=wpa_supplicant
13 echo "unload supplicant"
14 setprop ctl.stop $SERVICE_SUPPLICANT
15 sleep 1
17 echo "disable interface"
18 $IFCONFIG $WLAN_IF down
19 sleep 1
21 echo "Removing interface"
22 $IW $WLAN_IF del
23 sleep 1