Messed up the conversion to strict POSIX, just cleaning it up

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5918 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
cjhardee 2010-04-28 19:06:31 +00:00
parent 048bc6d7e0
commit b86a96b510
2 changed files with 4 additions and 4 deletions

View File

@ -96,10 +96,10 @@ done
((extrat=0))
extrat=0
until [ $extrat = 80 -o -z "$NICSTOWAIT" ]; do
sleep 1
((extrat=extrat+1))
extrat=$(($extrat+1))
for nic in $NICSTOWAIT; do
if ifconfig $nic|grep "inet addr"; then
NICSTOWAIT=`echo $NICSTOWAIT|sed -e s/$nic//`

View File

@ -22,12 +22,12 @@ if [ ! -z "$XCATDEST" ]; then
echo 'connect='$XCATDEST >> /etc/stunnel/stunnel.conf
fi
if [ -r /tmp/dhcpserver ]; then
((i=400));
i=400;
for srv in `cat /tmp/dhcpserver`; do
echo "[xcatd$i]" >> /etc/stunnel/stunnel.conf
echo "accept=127.0.0.1:$i" >> /etc/stunnel/stunnel.conf
echo "connect="$srv":"$XCATPORT >> /etc/stunnel/stunnel.conf
((i=i+1))
i=$(($i+1))
done
fi
mkdir -p /usr/var/run/stunnel