From abd96aa1d027fd7151c8a96ec940a8498eedcffe Mon Sep 17 00:00:00 2001 From: Weihua Hu Date: Wed, 9 Nov 2016 17:43:16 +0800 Subject: [PATCH] fix bug 1275 xcatprobe xcatmn usage errors in help menu (#2124) --- xCAT-probe/subcmds/xcatmn | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-probe/subcmds/xcatmn b/xCAT-probe/subcmds/xcatmn index e30f54650..20bcfcf03 100755 --- a/xCAT-probe/subcmds/xcatmn +++ b/xCAT-probe/subcmds/xcatmn @@ -872,6 +872,12 @@ if ($test) { exit 0; } +if (!$installnic){ + probe_utils->send_msg("$output", "f", "Option '-i' is required"); + probe_utils->send_msg("$output", "d", "$::USAGE"); + exit 1; +} + #Handle the interrupt signal from STDIN $SIG{TERM} = $SIG{INT} = sub { $terminal = 1;