From 66d37ef9e6ff182a17819707cb95069a546f4ad2 Mon Sep 17 00:00:00 2001 From: ericagar Date: Wed, 7 Sep 2011 02:05:53 +0000 Subject: [PATCH] Fix for defect 3404573: Fix bashisms in xcatpostinit git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10455 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatpostinit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/xcatpostinit b/xCAT/postscripts/xcatpostinit index da837ce6f..af6902714 100755 --- a/xCAT/postscripts/xcatpostinit +++ b/xCAT/postscripts/xcatpostinit @@ -35,7 +35,7 @@ stop) ;; start) # Node is stateless by default - STATELITE="No" + STATELITE=0 # Node is statelite if /proc/cmdline have flag `STATEMNT=' STATELITE_FLAG="STATEMNT=" @@ -46,7 +46,7 @@ start) # Usefull information passed as kernel arguments if [ -f "/proc/cmdline" ]; then if grep --quiet --no-messages "$STATELITE_FLAG" "/proc/cmdline"; then - STATELITE="Yes" + STATELITE=1 fi fi @@ -57,7 +57,7 @@ start) fi # Run $SCRIPT according to node type - if [ -n "$STATELITE" -a -z "${STATELITE/[yY][eE][sS]/}" ]; then + if [ $STATELITE -ne 0 ]; then logger -t xCAT "Call $SCRIPT for statelite mode" "$SCRIPT" 4 else