From d6ee2b1072bb759fceddbec908314e67115646fa Mon Sep 17 00:00:00 2001 From: daniceexi Date: Fri, 14 Sep 2012 13:24:12 +0000 Subject: [PATCH] defect 3539473: disable the xcatdebug to be run on aix git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13803 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/pods/man8/xcatdebug.8.pod | 2 +- xCAT-server/sbin/xcatdebug | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-client/pods/man8/xcatdebug.8.pod b/xCAT-client/pods/man8/xcatdebug.8.pod index 42233e8bf..a292b7194 100644 --- a/xCAT-client/pods/man8/xcatdebug.8.pod +++ b/xCAT-client/pods/man8/xcatdebug.8.pod @@ -1,6 +1,6 @@ =head1 NAME -B - Enable or disable the trace facilities for xCAT. +B - Enable or disable the trace facilities for xCAT. (Only supports Linux Operating System) B { [B<-f enable|disable> [B<-c configuration file | subroutine list>]] | [ B<-d enable |disable>]} diff --git a/xCAT-server/sbin/xcatdebug b/xCAT-server/sbin/xcatdebug index 0de2bec5e..f6abf482f 100755 --- a/xCAT-server/sbin/xcatdebug +++ b/xCAT-server/sbin/xcatdebug @@ -49,6 +49,11 @@ if ( exit 1; } +if ($^O !~ /^linux/i) { + print "xcatdebug command only supports Linux Operating System.\n"; + exit 1; +} + if (!($::FUNC || $::DEBUG)) { print "$usage"; exit 1;