From c82ef13b015b01125b8e93819d81b513e6123a67 Mon Sep 17 00:00:00 2001 From: kueller Date: Fri, 4 Mar 2011 10:31:24 +0000 Subject: [PATCH] Umstellung auf den neuen dhcp client "dhcpcd" git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_upstart@6025 504e572c-2e33-0410-9681-be2bf7408885 --- sbin/if_down | 8 +------- sbin/if_up | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/sbin/if_down b/sbin/if_down index f88fa93..cff0648 100755 --- a/sbin/if_down +++ b/sbin/if_down @@ -40,13 +40,7 @@ if pgrep vtun >/dev/null; then fi if [ -f /etc/sysconfig/net/${DEV}.dhcp ]; then echo -n "Stopping dhclient for $DEV" - DHPID=`ps -ef|grep dhclient|grep ${DEV}|awk '{print $2}'` - if [ "$DHPID" ]; then - kill $DHPID - fi - evaluate_retval - echo -n "Shutting down Interface $DEV" - ifconfig $DEV 0.0.0.0 down + dhcpcd -k $DEV evaluate_retval elif [ -f /etc/sysconfig/net/hostname.${DEV} ]; then HOST=`cat /etc/sysconfig/net/hostname.${DEV}|awk '{print $1}'` diff --git a/sbin/if_up b/sbin/if_up index f9233e3..ec1b5e6 100755 --- a/sbin/if_up +++ b/sbin/if_up @@ -90,7 +90,7 @@ if [ -f /etc/sysconfig/net/${DEV}.dhcp ]; then #only if there is a link, we will setup the interface.. if CheckForLink ${DEV}; then echo -n "Setting up ${DEV} with dhcp" - dhclient -q ${DEV} + dhcpcd -q ${DEV} evaluate_retval else ifconfig ${DEV} down