From 6fc7ebb0fdb8999b9fbb75d94e199717c18f0ff6 Mon Sep 17 00:00:00 2001 From: Christian kimocoder Date: Mon, 2 Oct 2017 21:21:22 +0200 Subject: [PATCH] Delete wlan0dhcp --- wlan0dhcp | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100755 wlan0dhcp diff --git a/wlan0dhcp b/wlan0dhcp deleted file mode 100755 index 6043382..0000000 --- a/wlan0dhcp +++ /dev/null @@ -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" -