Package: firehol
Version: 1.214-1
Severity: wishlist
Tags: patch

Hi,

please allow additional arguments given to /etc/init.d/firehol
to be passed through to /sbin/firehol.

I do not know whether either Debian policy or the general calling
conventions for rc-scripts forbid it, but since some other Debian
packages (eg. fetchmail, shaper) do it too, I guess it is allowed.

The attached patch should do it.

Maybe this is also a possible solution for bug #281408.

Thanks
Peter


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-k7
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages firehol depends on:
ii  bash                          2.05b-24   The GNU Bourne Again SHell
ii  bc                            1.06-15    The GNU bc arbitrary precision cal
ii  iproute                       20041019-1 Professional tools to control the 
ii  iptables                      1.2.11-8   Linux kernel 2.4+ iptables adminis
ii  net-tools                     1.60-10    The NET-3 networking toolkit

-- no debconf information
--- /etc/init.d/firehol
+++ /etc/init.d/firehol 2005-01-16 10:20:06.000000000 +0100
@@ -6,31 +6,34 @@
 
 set -e
 
-case "$1" in
+COMMAND="$1"
+shift
+
+case "$COMMAND" in
   start)
        echo -n "Starting iptables firewall: FireHOL ..."
-       /sbin/firehol start
+       /sbin/firehol start "$@"
        if [ $? = 0 ]; then
                echo "done."
        fi;
        ;;
   stop)
        echo -n "Stopping iptables firewall: FireHOL ..."
-       /sbin/firehol stop
+       /sbin/firehol stop "$@"
        if [ $? = 0 ]; then
                echo "done."
        fi;
        ;;
   restart|force-reload)
        echo -n "Restarting iptables firewall: FireHOL ..."
-       /sbin/firehol restart
+       /sbin/firehol restart "$@"
        if [ $? = 0 ]; then
                echo "done."
        fi;
        ;;
   *)
        N=/etc/init.d/firehol
-       echo "Usage: $N {start|stop|restart|force-reload}" >&2
+       echo "Usage: $N {start|stop|restart|force-reload} [<args>]" >&2
        exit 1
        ;;
 esac

Reply via email to