From 0622114d947afc4ee25daeadb3b96ce6b13ce205 Mon Sep 17 00:00:00 2001 From: teastep Date: Wed, 21 Apr 2004 21:35:27 +0000 Subject: [PATCH] Fix init.debian.sh git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1281 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- STABLE2/init.debian.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/STABLE2/init.debian.sh b/STABLE2/init.debian.sh index 237f581fc..423e3b8c6 100755 --- a/STABLE2/init.debian.sh +++ b/STABLE2/init.debian.sh @@ -7,7 +7,6 @@ WAIT_FOR_IFUP=/usr/share/shorewall/wait4ifup INITLOG=/var/log/shorewall-init.log test -x $SRWL || exit 0 -test -x $WAIT_FOR_IFUP || exit 0 test -n $INITLOG || { echo "INITLOG cannot be empty, please configure $0" ; exit 1; @@ -66,10 +65,17 @@ fi wait_for_pppd () { if [ "$wait_interface" != "" ] then + if [ -f $WAIT_FOR_IFUP ] + then for i in $wait_interface do $WAIT_FOR_IFUP $i 90 done + else + echo "$WAIT_FOR_IFUP: File not found" >> $INITLOG + echo_notdone + exit 2 + fi fi }