From 871480933a1c28f8a9fed4c4d34d06c439a7a422 Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Sun, 11 Jan 2015 12:28:04 +0530 Subject: Moved, renamed, and deleted files The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure. --- drivers/net/wireless/rtl8188C_8192C/wlan0dhcp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 drivers/net/wireless/rtl8188C_8192C/wlan0dhcp (limited to 'drivers/net/wireless/rtl8188C_8192C/wlan0dhcp') diff --git a/drivers/net/wireless/rtl8188C_8192C/wlan0dhcp b/drivers/net/wireless/rtl8188C_8192C/wlan0dhcp new file mode 100755 index 00000000..60433829 --- /dev/null +++ b/drivers/net/wireless/rtl8188C_8192C/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" + -- cgit