From 93b23614cfc63da7c28dc14bcaae43e8a34214b5 Mon Sep 17 00:00:00 2001 From: Jason Vas Dias Date: Fri, 27 Aug 2004 19:57:07 +0000 Subject: Add support for new DHCPv6 client (new DHCPV6C ifcfg variable) --- sysconfig/network-scripts/ifdown | 6 +++++- sysconfig/network-scripts/ifup | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 0156253f..b4a42aeb 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -432,6 +432,8 @@ if [ "${NETWORKING_IPV6}" = "yes" ]; then /etc/sysconfig/network-scripts/ifup-ipv6 ${CONFIG} if [[ "${DHCPV6C}" = [Yy1]* ]] && [ -x /sbin/dhcp6c ]; then /sbin/dhcp6c ${DEVICE}; + dhcp6_pid=(`/bin/ps -eo 'pid,args' | /bin/grep "dhcp6c ${DEVICE}" | egrep -v grep`); + echo ${dhcp6_pid[0]} > /var/run/dhcp6c_${DEVICE}.pid fi; fi -- cgit v1.2.1