From 7e76137b2b4c5eabaa4454b59616960dc017f602 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Sat, 5 Jan 2013 02:50:27 +0000 Subject: [PATCH] Ubuntu: makedhcp -n can't create new dhcp.conf file when there is not /etc/dhcp/dhcpd.conf git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14751 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/dhcp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 3e2bdc3db..98ad613fc 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -65,7 +65,7 @@ my $usingipv6; # is this ubuntu ? if ( $distro =~ /ubuntu.*/ ){ - if (-e '/etc/dhcp/dhcpd.conf') { + if (-e '/etc/dhcp/') { $dhcpconffile = '/etc/dhcp/dhcpd.conf'; } else {