aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-eth
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-03-03 21:08:09 +0000
committerBill Nottingham <notting@redhat.com>2005-03-03 21:08:09 +0000
commite2d4fb9de77b0e2f2dab503b58491ffb2fd04c36 (patch)
tree45e3b19ebf61cf8291383466f5f5c158e0154437 /sysconfig/network-scripts/ifdown-eth
parenta9e02bb3e63fa5d94ef063aec402617c454f7e5c (diff)
downloadinitscripts-e2d4fb9de77b0e2f2dab503b58491ffb2fd04c36.tar
initscripts-e2d4fb9de77b0e2f2dab503b58491ffb2fd04c36.tar.gz
initscripts-e2d4fb9de77b0e2f2dab503b58491ffb2fd04c36.tar.bz2
initscripts-e2d4fb9de77b0e2f2dab503b58491ffb2fd04c36.tar.xz
initscripts-e2d4fb9de77b0e2f2dab503b58491ffb2fd04c36.zip
ipv6 cleanups (<pb@bieringer.de>)
Diffstat (limited to 'sysconfig/network-scripts/ifdown-eth')
-rwxr-xr-xsysconfig/network-scripts/ifdown-eth11
1 files changed, 2 insertions, 9 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth
index a9570c01..83aa7c7a 100755
--- a/sysconfig/network-scripts/ifdown-eth
+++ b/sysconfig/network-scripts/ifdown-eth
@@ -58,19 +58,12 @@ fi;
retcode=0
[ -n "`pidof -x dhclient`" ] && {
if [ -f "/var/run/dhclient-${DEVICE}.pid" ]; then
- dhcpid=`cat /var/run/dhclient-${DEVICE}.pid`
if [[ "$DHCPRELEASE" = [yY1]* ]]; then
- /sbin/dhclient -r -lf /var/lib/dhcp/dhclient-${DEVICE}.leases -pf /var/run/dhclient-${DEVICE}.pid ${DEVICE} >/dev/null 2>&1
+ release_dhcp_lease
retcode=$?
else
- kill $dhcpid >/dev/null 2>&1
- retcode=$?
- reason=STOP interface=${DEVICE} /sbin/dhclient-script
+ kill_dhcp_client
fi
- if [ -f "/var/run/dhclient-${DEVICE}.pid" ]; then
- rm -f /var/run/dhclient-${DEVICE}.pid
- kill $dhcpid >/dev/null 2>&1
- fi
fi
}
# we can't just delete the configured address because that address