diff options
author | Bill Nottingham <notting@redhat.com> | 2001-07-17 23:04:05 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-07-17 23:04:05 +0000 |
commit | ca551e2debb9a703f23a9811da6baa919f330e5f (patch) | |
tree | a7e1e6b5df60b3ff7993b44d6e4ff8b992ffbbda /sysconfig | |
parent | 300c7e62701232894f97e2d7a8ae9fd32d778e7b (diff) | |
download | initscripts-ca551e2debb9a703f23a9811da6baa919f330e5f.tar initscripts-ca551e2debb9a703f23a9811da6baa919f330e5f.tar.gz initscripts-ca551e2debb9a703f23a9811da6baa919f330e5f.tar.bz2 initscripts-ca551e2debb9a703f23a9811da6baa919f330e5f.tar.xz initscripts-ca551e2debb9a703f23a9811da6baa919f330e5f.zip |
only remove the IP address for the !DHCP case
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 3 |
1 files changed, 2 insertions, 1 deletions
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=$? |