diff options
Diffstat (limited to 'drivers/net/wireless/rtl8188EUS_linux_v4.3.0_10245.20140114_beta/wlan0dhcp')
-rwxr-xr-x | drivers/net/wireless/rtl8188EUS_linux_v4.3.0_10245.20140114_beta/wlan0dhcp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtl8188EUS_linux_v4.3.0_10245.20140114_beta/wlan0dhcp b/drivers/net/wireless/rtl8188EUS_linux_v4.3.0_10245.20140114_beta/wlan0dhcp new file mode 100755 index 00000000..60433829 --- /dev/null +++ b/drivers/net/wireless/rtl8188EUS_linux_v4.3.0_10245.20140114_beta/wlan0dhcp @@ -0,0 +1,16 @@ +#!/bin/bash + +var0=`ps aux|awk '/dhclient wlan0/'|awk '$11!="awk"{print $2}'` + +kill $var0 +cp ifcfg-wlan0 /etc/sysconfig/network-scripts/ + +dhclient wlan0 + +var1=`ifconfig wlan0 |awk '/inet/{print $2}'|awk -F: '{print $2}'` + + +rm -f /etc/sysconfig/network-scripts/ifcfg-wlan0 + +echo "get ip: $var1" + |