From d66206ba8bdf504563eef8f075510122a02dd2e0 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 21 May 2010 10:13:28 -0700 Subject: [PATCH] Correct issues with non-Debian init script Remove 'Required*' lines Correct PRODUCT->product Signed-off-by: Tom Eastep --- Shorewall-init/init.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Shorewall-init/init.sh b/Shorewall-init/init.sh index 2fadbd208..fbbb5461e 100755 --- a/Shorewall-init/init.sh +++ b/Shorewall-init/init.sh @@ -26,8 +26,6 @@ # ### BEGIN INIT INFO # Provides: shorewall-init -# Required-Start: $local_fs -# Required-Stop: $local_fs # Default-Start: 3 4 5 # Default-Stop: 0 1 2 6 # Short-Description: Initialize the firewall at boot time @@ -61,7 +59,7 @@ shorewall_start () { echo -n "Initializing \"Shorewall-based firewalls\": " for product in $PRODUCTS; do vardir=/var/lib/$product - [ -f /etc/$PRODUCT/vardir ] && . /etc/$PRODUCT/vardir + [ -f /etc/$product/vardir ] && . /etc/$product/vardir if [ -x ${vardir}/firewall ]; then ${vardir}/firewall stop || notdone fi @@ -78,7 +76,7 @@ shorewall_stop () { echo -n "Clearing \"Shorewall-based firewalls\": " for product in $PRODUCTS; do vardir=/var/lib/$PRODUCT - [ -f /etc/$PRODUCT/vardir ] && . /etc/$PRODUCT/vardir + [ -f /etc/$product/vardir ] && . /etc/$product/vardir if [ -x ${vardir}/firewall ]; then ${vardir}/firewall clear || notdone fi