diff --git a/sbin/if_down b/sbin/if_down index 97c4363..88338d2 100755 --- a/sbin/if_down +++ b/sbin/if_down @@ -36,7 +36,8 @@ if [ ! "$DEV" ]; then exit 10 fi if [ -f /etc/sysconfig/net/${DEV}.dhcp ]; then - kill `ps -ef|grep dhclient|grep eth0|awk '{print $2}'` + kill `ps -ef|grep dhclient|grep ${DEV}|awk '{print $2}'` + ifconfig $DEV 0.0.0.0 down elif [ -f /etc/sysconfig/net/hostname.${DEV} ]; then HOST=`cat /etc/sysconfig/net/hostname.${DEV}|awk '{print $1}'` IP=`grep $HOST /etc/hosts|awk '{print $1}'`