From 98f191f7b1ca8cae372cb6553190abf5c033bcc2 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 31 Oct 2008 15:01:50 +0000 Subject: [PATCH] fix -h and -v message git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2438 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/rcons | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xCAT-client/bin/rcons b/xCAT-client/bin/rcons index 86cdd7254..1d7f19b7d 100755 --- a/xCAT-client/bin/rcons +++ b/xCAT-client/bin/rcons @@ -1,5 +1,17 @@ #!/bin/sh CONSERVER=$2 +if [ $1 = -h ]; then + echo "rcons - remotely accesses the serial console of a node" + echo "rcons " + echo "rcons [-h|--help|-v|--version]" + exit 0 +fi +if [ $1 = -v ]; then + echo "Version 2.1" + exit 0 +fi +#if [ -z "$CONSERVER" ]; then +# CONSERVER=`nodels $1 nodehm.conserver` #if [ -z "$CONSERVER" ]; then # CONSERVER=`nodels $1 nodehm.conserver` #fi