dhcp 4.x will use /etc/dhcp/dhcpd.conf as its config file, and redhat6/fedora12/fedora13 is using it

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6623 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-06-30 09:54:19 +00:00
parent b6e3738702
commit e979a2f338

View File

@ -39,6 +39,11 @@ my $tftpdir = xCAT::Utils->getTftpDir();
my $dhcpconffile = $^O eq 'aix' ? '/etc/dhcpsd.cnf' : '/etc/dhcpd.conf';
my %dynamicranges; #track dynamic ranges defined to see if a host that resolves is actually a dynamic address
# dhcp 4.x will use /etc/dhcp/dhcpd.conf as the config file
if ( $^O ne 'aix' and -d "/etc/dhcp" ) {
$dhcpconffile = '/etc/dhcp/dhcpd.conf';
}
sub ipIsDynamic {
my $ip = shift;
my $number = inet_aton($ip);