mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-27 23:54:24 +00:00
Delete wlan0dhcp
This commit is contained in:
parent
1dde18dc7d
commit
b901568b51
16
wlan0dhcp
16
wlan0dhcp
@ -1,16 +0,0 @@
|
||||
#!/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"
|
||||
|
Loading…
Reference in New Issue
Block a user