Annotation of embedaddon/ipguard/doc/ipguard.rcng.sample, revision 1.1.1.1

1.1       misho       1: #! /bin/sh
                      2: ##  $Id: ipguard.rcng.sample,v 1.11 2010/07/12 03:46:52 sead Exp $
                      3: 
                      4: # PROVIDE: ipguard
                      5: # REQUIRE: DAEMON
                      6: # KEYWORD: shutdown
                      7: 
                      8: # Add the following lines to /etc/rc.conf to enable ipguard:
                      9: #
                     10: # ipguard_enable="YES"
                     11: # ipguard_interface="iface"
                     12: # ipguard_flags="-u 300 -xz"
                     13: 
                     14: . /etc/rc.subr
                     15: 
                     16: name=ipguard
                     17: rcvar=`set_rcvar`
                     18: start_precmd=ipguard_precmd
                     19: command=/usr/local/sbin/${name}
                     20: 
                     21: ipguard_enable=${ipguard_enable:-"NO"}
                     22: ipguard_interface=${ipguard_interface:-"fxp0"}
                     23: ipguard_flags=${ipguard_flags:-"-u 300 -xz"}
                     24: 
                     25: ipguard_precmd() {
                     26:     command_args="$command_args ${ipguard_interface}"
                     27:     pidfile="/var/run/${name}_${ipguard_interface}.pid"
                     28: }
                     29: 
                     30: load_rc_config ${name}
                     31: run_rc_command "$1"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>