Package: shorewall Version: 4.4.24.1-1 Severity: wishlist Tags: patch
Here is a patch that adds support for the "status" action to the shorewall init script. The upstream maintainers had already done most of the legwork.
diff -Nru shorewall-4.4.24.1/debian/changelog shorewall-4.4.24.1/debian/changelog --- shorewall-4.4.24.1/debian/changelog 2011-10-16 04:23:30.000000000 +0300 +++ shorewall-4.4.24.1/debian/changelog 2011-10-27 06:14:57.000000000 +0300 @@ -1,3 +1,9 @@ +shorewall (4.4.24.1-1.1) UNRELEASED; urgency=low + + * Add "status" action to init script + + -- Peter Eisentraut <[email protected]> Thu, 27 Oct 2011 06:14:28 +0300 + shorewall (4.4.24.1-1) unstable; urgency=low * New Upstream Version diff -Nru shorewall-4.4.24.1/debian/shorewall.init shorewall-4.4.24.1/debian/shorewall.init --- shorewall-4.4.24.1/debian/shorewall.init 2011-10-16 04:23:30.000000000 +0300 +++ shorewall-4.4.24.1/debian/shorewall.init 2011-10-27 06:21:52.000000000 +0300 @@ -115,6 +115,11 @@ return 0 } +# status of the firewall +shorewall_status () { + $SRWL $SRWL_OPTS status && exit 0 || exit $? +} + case "$1" in start) shorewall_start @@ -128,8 +133,11 @@ force-reload|restart) shorewall_restart ;; + status) + shorewall_status + ;; *) - echo "Usage: /etc/init.d/shorewall {start|stop|refresh|restart|force-reload}" + echo "Usage: /etc/init.d/shorewall {start|stop|refresh|restart|force-reload|status}" exit 1 esac

