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
This commit is contained in:
ericagar 2011-09-07 02:05:53 +00:00
parent f692356e42
commit 66d37ef9e6

View File

@ -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