diff options
author | fdeak <ferenc.deak@gmail.com> | 2010-05-11 22:54:46 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:54:46 +0200 |
commit | b5793a1e3c6a0281d5dc112a6ae9f5482adc51f7 (patch) | |
tree | 085d4f01ddf5737307c00107a9919faa3857b283 /network/firehol/rc.firehol | |
parent | 1fe5cc762326ddcee28e0fd0c0a25c96b8646454 (diff) | |
download | slackbuilds-b5793a1e3c6a0281d5dc112a6ae9f5482adc51f7.tar.gz |
network/firehol: Added to 12.1 repository
Diffstat (limited to 'network/firehol/rc.firehol')
-rw-r--r-- | network/firehol/rc.firehol | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/network/firehol/rc.firehol b/network/firehol/rc.firehol new file mode 100644 index 0000000000..6bb616751d --- /dev/null +++ b/network/firehol/rc.firehol @@ -0,0 +1,33 @@ +#!/bin/sh +# +# /etc/rc.d/rc.firehol +# +# Start/stop/restart the fireHOL firewall. +# +# Slackware starts 'rc.firewall' automatically if it is exists and +# executable, to make fireHOL your default firewall, make this file +# executable, and link it to rc.firewall: +# ln -s rc.firehol rc.firewall +# chmod 755 /etc/rc.d/rc.firehol +# Alternatively you can call this script from rc.local, altough the +# the first method is preferred. +# +# This is a basic start/stop/restart/reload startup script, +# firehol has more options, you can use those by calling firehol +# directly, see 'man firehol'. + +case "$1" in + 'start') + /usr/sbin/firehol start + ;; + 'stop') + /usr/sbin/firehol stop + ;; + 'restart'|'reload') + /usr/sbin/firehol restart + ;; + *) + echo "Usage: $0 {start|stop|restart}" + ;; +esac + |