From 8236ce572e2edecd17408b871d229b75894ed866 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 12 Aug 2014 16:39:52 -0700 Subject: [PATCH] Apply Louis Lagendijk's patch for Shorewall-init Signed-off-by: Tom Eastep --- Shorewall-init/shorewall-init | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Shorewall-init/shorewall-init b/Shorewall-init/shorewall-init index dea336538..52b1e6426 100644 --- a/Shorewall-init/shorewall-init +++ b/Shorewall-init/shorewall-init @@ -63,18 +63,19 @@ shorewall_start () { for PRODUCT in $PRODUCTS; do setstatedir - if [ -x ${STATEDIR}/$PRODUCT/firewall ]; then + if [ -x ${STATEDIR}/firewall ]; then # # Run in a sub-shell to avoid name collisions # ( - if ! ${STATEDIR}/$PRODUCT/firewall status > /dev/null 2>&1; then - ${STATEDIR}/$PRODUCT/firewall ${OPTIONS} stop || exit 1 + if ! ${STATEDIR}/firewall status > /dev/null 2>&1; then + ${STATEDIR}/firewall ${OPTIONS} stop || exit 1 else exit 1 fi ) else + echo ERROR: ${STATEDIR}/firewall does not exist or is not executable! exit 1 fi done @@ -95,8 +96,8 @@ shorewall_stop () { for PRODUCT in $PRODUCTS; do setstatedir - if [ -x ${STATEDIR}/$PRODUCT/firewall ]; then - ${STATEDIR}/$PRODUCT/firewall ${OPTIONS} clear || exit 1 + if [ -x ${STATEDIR}/firewall ]; then + ${STATEDIR}/firewall ${OPTIONS} clear || exit 1 fi done