From 23a79b3925d314e41eb8ae3831d42911a509941d Mon Sep 17 00:00:00 2001 From: ligc Date: Wed, 18 Nov 2009 06:24:36 +0000 Subject: [PATCH] conserver hierachy support code drop git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4596 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/rcons | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-client/bin/rcons b/xCAT-client/bin/rcons index 2a7f7746c..bff275ae1 100755 --- a/xCAT-client/bin/rcons +++ b/xCAT-client/bin/rcons @@ -19,6 +19,10 @@ if [ -n "$2" ] && [ "$2" = "-f" ]; then FORCE=-f fi +if [ -z "$CONSERVER" ]; then + CONSERVER=`nodels $1 nodehm.conserver 2>/dev/null | awk -F: '{print $2}' | tr -d ' '` +fi + if [ -z "$CONSERVER" ]; then CONSERVER=$XCATHOST fi