Add makedhcp -a call
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@892 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
61d2080a8c
commit
598477f4bc
@ -118,6 +118,7 @@ sub setup_DHCP
|
||||
${"xCAT_plugin::" . $modname . "::"}{process_request}
|
||||
->($cmdref, \&xCAT::Client::handle_response);
|
||||
|
||||
|
||||
$cmd = "chkconfig dhcpd on";
|
||||
xCAT::Utils->runcmd($cmd, -1);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
@ -132,6 +133,14 @@ sub setup_DHCP
|
||||
xCAT::MsgUtils->message("S", "Error from $cmd");
|
||||
return 1;
|
||||
}
|
||||
$cmdref;
|
||||
$cmdref->{command}->[0] = "makedhcp";
|
||||
$cmdref->{cwd}->[0] = "/opt/xcat/sbin";
|
||||
$cmdref->{arg}->[0] = "-a";
|
||||
|
||||
my $modname = "dhcp";
|
||||
${"xCAT_plugin::" . $modname . "::"}{process_request}
|
||||
->($cmdref, \&xCAT::Client::handle_response);
|
||||
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user