diff --git a/xCAT/postscripts/updateflag.awk b/xCAT/postscripts/updateflag.awk index 0eeb343b4..850899761 100755 --- a/xCAT/postscripts/updateflag.awk +++ b/xCAT/postscripts/updateflag.awk @@ -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 { diff --git a/xCAT/postscripts/xcatinstallpost b/xCAT/postscripts/xcatinstallpost index 054b4b01a..beb768e31 100755 --- a/xCAT/postscripts/xcatinstallpost +++ b/xCAT/postscripts/xcatinstallpost @@ -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;