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:
parent
048bc6d7e0
commit
b86a96b510
@ -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//`
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user