#!/bin/sh # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html ################################################################# # # xCAT script for running postboot scripts for full install case. ################################################################# 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 sleep $SLI cd /xcatpost; PATH=/xcatpost:$PATH export PATH chmod +x /xcatpost/*; if [ -x /usr/bin/openssl ]; then SIP=`grep "^MASTER=" /var/tmp/mypostscript.post |cut -d= -f2` XCATSERVER="$SIP:3001" export XCATSERVER USEOPENSSLFORXCAT=1 #Though this is the only method going forward, flag to allow backward compatibility with 2.2 generated netboot images export USEOPENSSLFORXCAT fi DHCP_TMP=`sed 's/\(DHCPINTERFACES=\)\(.*\)$/\1"\2"/' /var/tmp/mypostscript.post` echo "$DHCP_TMP" > /var/tmp/mypostscript.post echo "updateflag.awk \$MASTER 3002 \"installstatus booted\"" >> /var/tmp/mypostscript.post chmod +x /var/tmp/mypostscript.post if [ -x /var/tmp/mypostscript.post ];then /var/tmp/mypostscript.post fi chmod +x /var/tmp/mypostscript.post if [ -x /var/tmp/mypostscript.post ];then /var/tmp/mypostscript.post fi