Fix for defect 3393335: Fix bashisms in xcatinstallpost

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10314 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ericagar 2011-08-17 23:01:29 +00:00
parent 43305b59c8
commit da99a9fc05
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/awk -f
#!/usr/bin/awk -f
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
BEGIN {

View File

@ -5,13 +5,13 @@
# xCAT script for running postboot scripts for full install case.
#################################################################
if [ ! `uname` == Linux ]; then
if [ ! `uname` = Linux ]; then
MYDIR=`dirname $0`
#exec $MYDIR/xcatdsklspost.aix
logger -t xcat "$0: the OS name is not Linux"
exit
fi
let SLI=$RANDOM%10
SLI=$(awk 'BEGIN{srand(); printf("%d\n",rand()*10)}')
sleep $SLI
cd /xcatpost;