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:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
@@ -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; 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user