aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-eth
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-01-08 17:12:09 -0500
committerBill Nottingham <notting@redhat.com>2010-01-08 17:12:09 -0500
commit36697b32a0ea243447430d8c72ebfd55bc2736c2 (patch)
tree44e6bfcbf8506c3fce6bdf697c899ea2cd337ba9 /sysconfig/network-scripts/ifup-eth
parent4bc057e8701b8619557640903fd228bef1e8736f (diff)
downloadinitscripts-36697b32a0ea243447430d8c72ebfd55bc2736c2.tar
initscripts-36697b32a0ea243447430d8c72ebfd55bc2736c2.tar.gz
initscripts-36697b32a0ea243447430d8c72ebfd55bc2736c2.tar.bz2
initscripts-36697b32a0ea243447430d8c72ebfd55bc2736c2.tar.xz
initscripts-36697b32a0ea243447430d8c72ebfd55bc2736c2.zip
Run '/sbin/dhclient -6' instead of /sbin/dhcp6c (#553017, <dcantrell@redhat.com>)
The ISC software is now used for DHCPv6 support, so run dhclient in DHCPv6 mode instead of the older /sbin/dhcp6c program. Still honor the same configuration variables.
Diffstat (limited to 'sysconfig/network-scripts/ifup-eth')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth6
1 files changed, 2 insertions, 4 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 35be659d..2aead689 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -305,10 +305,8 @@ fi
# IPv6 initialisation?
/etc/sysconfig/network-scripts/ifup-ipv6 ${CONFIG}
-if [[ "${DHCPV6C}" = [Yy1]* ]] && [ -x /sbin/dhcp6c ]; then
- /sbin/dhcp6c ${DHCPV6C_OPTIONS} ${DEVICE}
- dhcp6_pid=($(/bin/ps -eo 'pid,args' | /bin/grep "dhcp6c ${DHCPV6C_OPTIONS} ${DEVICE}" | egrep -v grep))
- [ -n "$dhcp6_pid" ] && echo ${dhcp6_pid[0]} > /var/run/dhcp6c_${DEVICE}.pid
+if [[ "${DHCPV6C}" = [Yy1]* ]] && [ -x /sbin/dhclient ]; then
+ /sbin/dhclient -6 ${DHCPV6C_OPTIONS} ${DEVICE} -lf /var/lib/dhclient/dhclient6-${DEVICE}.leases -pf /var/run/dhclient6-${DEVICE}.pid
fi
if [ "${IPX}" = yes ]; then