bug 2151149 ; makedhcp -h;There isn't any output information. I have fixed it.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2778 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
77ed4d7958
commit
c85652a6e2
@ -393,7 +393,14 @@ sub process_request
|
||||
$callback->({data => ["Usage: makedhcp <-n> <noderange>"]});
|
||||
return;
|
||||
}
|
||||
if (grep /^-n$/, @{$req->{arg}})
|
||||
|
||||
if(grep /-h/,@{$req->{arg}}) {
|
||||
my $usage="Usage: makedhcp -n\n\tmakedhcp -a\n\tmakedhcp -a -d\n\tmakedhcp -d noderange\n\tmakedhcp <noderange> [-s statements]\n\tmakedhcp [-h|--help]";
|
||||
$callback->({data => [$usage]});
|
||||
return;
|
||||
}
|
||||
|
||||
if (grep /^-n$/, @{$req->{arg}})
|
||||
{
|
||||
if (-e "/etc/dhcpd.conf")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user