From 4920ccfbb5f232488f79422943dfdcac1efc5301 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 24 Apr 2012 14:37:48 -0400 Subject: Allow dhclient configuration files for DHCPv6 as well. (#815676) --- sysconfig/network-scripts/network-functions | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sysconfig/network-scripts/network-functions') diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 6402a7dc..044f1ea1 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -68,6 +68,17 @@ generate_lease_file_name () { LEASEFILE="/var/lib/dhclient/dhclient$ver-${UUID}-${DEVICE}.lease" } +generate_config_file_name () { + local ver=$1 + if [ -s /etc/dhcp/dhclient$ver-${DEVICE}.conf ]; then + DHCLIENTCONF="-cf /etc/dhcp/dhclient$ver-${DEVICE}.conf"; + elif [ -s /etc/dhclient$ver-${DEVICE}.conf ]; then + DHCLIENTCONF="-cf /etc/dhclient$ver-${DEVICE}.conf"; + else + DHCLIENTCONF=''; + fi +} + need_config () { local nconfig -- cgit v1.2.1