Additional fixes for Shorewall-init init script.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2014-06-15 08:58:23 -07:00
parent 041e8c445e
commit e6132b5630

View File

@ -110,8 +110,8 @@ shorewall_start () {
# Run in a sub-shell to avoid name collisions # Run in a sub-shell to avoid name collisions
# #
( (
if ! ${STATEDIR}/$PRODUCT/firewall status > /dev/null 2>&1; then if ! ${STATEDIR}/firewall status > /dev/null 2>&1; then
${STATEDIR}/$PRODUCT/firewall ${OPTIONS} stop || echo_notdone ${STATEDIR}/firewall ${OPTIONS} stop || echo_notdone
else else
echo_notdone echo_notdone
fi fi
@ -136,7 +136,7 @@ shorewall_stop () {
setstatedir setstatedir
if [ -x ${STATEDIR}/firewall ]; then if [ -x ${STATEDIR}/firewall ]; then
${STATEDIR}/$PRODUCT/firewall ${OPTIONS} clear || echo_notdone ${STATEDIR}/firewall ${OPTIONS} clear || echo_notdone
fi fi
done done