From ca551e2debb9a703f23a9811da6baa919f330e5f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 17 Jul 2001 23:04:05 +0000 Subject: only remove the IP address for the !DHCP case --- sysconfig/network-scripts/ifdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index 71ce0ccb..a1a7c27a 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -62,9 +62,10 @@ if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then pump -r -i ${DEVICE} retcode=$? } +else + ip addr del ${IPADDR}/${PREFIX} brd ${BROADCAST:-+} dev ${DEVICE} fi -ip addr del ${IPADDR}/${PREFIX} brd ${BROADCAST:-+} dev ${DEVICE} ip link set ${DEVICE} down [ "$retcode" = "0" ] && retcode=$? -- cgit v1.2.1