From c85652a6e2d0c63c93808c132b2755fef0e745be Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 19 Feb 2009 10:00:28 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/dhcp.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index ab4f52bd7..f913b0dc8 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -393,7 +393,14 @@ sub process_request $callback->({data => ["Usage: makedhcp <-n> "]}); 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 [-s statements]\n\tmakedhcp [-h|--help]"; + $callback->({data => [$usage]}); + return; + } + + if (grep /^-n$/, @{$req->{arg}}) { if (-e "/etc/dhcpd.conf") {