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