aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-07-16 18:33:37 +0000
committerBill Nottingham <notting@redhat.com>2001-07-16 18:33:37 +0000
commitc4c7bc16a9301e4f14dff5f6133ff686a914a3e8 (patch)
treef6d3052d441ad652ff50f3ad823ca648b1943bdd /sysconfig/network-scripts/ifdown
parent5c84d335b4ea9fe6ef17c3176a6471ee696de286 (diff)
downloadinitscripts-c4c7bc16a9301e4f14dff5f6133ff686a914a3e8.tar
initscripts-c4c7bc16a9301e4f14dff5f6133ff686a914a3e8.tar.gz
initscripts-c4c7bc16a9301e4f14dff5f6133ff686a914a3e8.tar.bz2
initscripts-c4c7bc16a9301e4f14dff5f6133ff686a914a3e8.tar.xz
initscripts-c4c7bc16a9301e4f14dff5f6133ff686a914a3e8.zip
remove ip address on ifdown
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index eec308e4..557c5c9e 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -64,7 +64,7 @@ if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
}
fi
-
+ip addr del ${IPADDR}/${PREFIX} brd ${BROADCAST:-+} dev ${DEVICE}
ip link set ${DEVICE} down
[ "$retcode" = "0" ] && retcode=$?