From da99a9fc05c2a4c4a6d40f8653d0c96deeb31e4e Mon Sep 17 00:00:00 2001 From: ericagar Date: Wed, 17 Aug 2011 23:01:29 +0000 Subject: [PATCH] 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 --- xCAT/postscripts/updateflag.awk | 2 +- xCAT/postscripts/xcatinstallpost | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;