2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-02 16:28:25 +00:00

SLE 15 at least has moved *back* out of /etc/dhcp

This commit is contained in:
Jarrod Johnson
2018-08-08 20:13:43 -04:00
parent 2c759a412f
commit cbc5d65138

View File

@@ -63,7 +63,7 @@ my $checkdomain=0;
# dhcp 4.x will use /etc/dhcp/dhcpd.conf as the config file
my $dhcp6conffile;
if ($^O ne 'aix' and -d "/etc/dhcp") {
if ($^O ne 'aix' and not -e $dhcpconffile and -d "/etc/dhcp") {
$dhcpconffile = '/etc/dhcp/dhcpd.conf';
$dhcp6conffile = '/etc/dhcp/dhcpd6.conf';
}