aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorJason Vas Dias <jvdias@redhat.com>2004-08-27 19:57:07 +0000
committerJason Vas Dias <jvdias@redhat.com>2004-08-27 19:57:07 +0000
commit93b23614cfc63da7c28dc14bcaae43e8a34214b5 (patch)
tree12496e3dc65626428173e750d50c915871688a2c /sysconfig/network-scripts/ifdown
parent8397f3458c4194bd79ad769ea086a73086b0db61 (diff)
downloadinitscripts-93b23614cfc63da7c28dc14bcaae43e8a34214b5.tar
initscripts-93b23614cfc63da7c28dc14bcaae43e8a34214b5.tar.gz
initscripts-93b23614cfc63da7c28dc14bcaae43e8a34214b5.tar.bz2
initscripts-93b23614cfc63da7c28dc14bcaae43e8a34214b5.tar.xz
initscripts-93b23614cfc63da7c28dc14bcaae43e8a34214b5.zip
Add support for new DHCPv6 client (new DHCPV6C ifcfg variable)r7-73
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 0c3c1247..16954b4d 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -73,7 +73,11 @@ fi
if [ "${NETWORKING_IPV6}" = "yes" ]; then
/etc/sysconfig/network-scripts/ifdown-ipv6 ${CONFIG}
-fi
+ if [[ "${DHCPV6C}" = [Yy1]* ]] && [ -f /var/run/dhcp6c_${DEVICE}.pid ]; then
+ kill `cat /var/run/dhcp6c_${DEVICE}.pid`;
+ rm -f /var/run/dhcp6c_${DEVICE}.pid;
+ fi;
+fi;
retcode=0
if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then