fix defect 4034
This commit is contained in:
parent
8887485857
commit
9e3dfa484b
@ -881,8 +881,8 @@ sub check_options
|
||||
xCAT::MsgUtils->message("I", $rsp, $callback, 0);
|
||||
return 0;
|
||||
}
|
||||
# if not help, dhcpd needs to be running
|
||||
if (!($opt->{h})) {
|
||||
# if not help and not -n, dhcpd needs to be running
|
||||
if (!($opt->{h})&& (!($opt->{n}))) {
|
||||
if (xCAT::Utils->isLinux()) {
|
||||
my @output = xCAT::Utils->runcmd("service dhcpd status", -1);
|
||||
if ($::RUNCMD_RC != 0) { # not running
|
||||
|
Loading…
Reference in New Issue
Block a user