From b5793a1e3c6a0281d5dc112a6ae9f5482adc51f7 Mon Sep 17 00:00:00 2001 From: fdeak Date: Tue, 11 May 2010 22:54:46 +0200 Subject: network/firehol: Added to 12.1 repository --- network/firehol/rc.firehol | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 network/firehol/rc.firehol (limited to 'network/firehol/rc.firehol') diff --git a/network/firehol/rc.firehol b/network/firehol/rc.firehol new file mode 100644 index 000000000000..6bb616751d74 --- /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 + -- cgit v1.2.3