From 9b7532275d589d7dcd2785f2c61bbaae1beda1b0 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 26 Mar 2009 15:01:53 +0000 Subject: [PATCH] move to setup dhcpd last git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2999 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/AAsn.pm | 30 ++++++++++++++++++---------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index b08ff60e4..1780f8e2f 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -115,17 +115,6 @@ sub handled_commands } - $service = "dhcpserver"; - if (grep(/$service/, @servicelist)) - { - - $rc = &setup_DHCP($nodename); # setup DHCP - if ($rc == 0) - { - xCAT::Utils->update_xCATSN($service); - } - - } $service = "ftpserver"; if (grep(/$service/, @servicelist)) @@ -174,6 +163,8 @@ sub handled_commands } } + + } # end Linux only # @@ -201,6 +192,23 @@ sub handled_commands } } + # + # setup dhcp only on Linux and last + # + if (xCAT::Utils->isLinux()) { + my $service = "dhcpserver"; + if (grep(/$service/, @servicelist)) + { + + $rc = &setup_DHCP($nodename); # setup DHCP + if ($rc == 0) + { + xCAT::Utils->update_xCATSN($service); + } + + } + } + # done now in setupntp postinstall script, but may change #$service = "ntpserver";