Sync usage with man page.
[netbsd-mini2440.git] / etc / rc.d / pf_boot
blob8ec0425b3c2ef647b31ac7d34526948dfde7f638
1 #!/bin/sh
3 # $NetBSD: pf_boot,v 1.3 2008/11/12 12:35:52 ad Exp $
6 # PROVIDE: pf_boot
7 # REQUIRE: root bootconf mountcritlocal tty
8 # BEFORE: network
10 $_rc_subr_loaded . /etc/rc.subr
12 name="pf_boot"
13 rcvar="pf"
14 start_cmd="pf_boot_start"
15 stop_cmd=":"
17 pf_boot_start()
19 if [ "$autoboot" != "yes" ]; then
20 err 1 "This script should only be executed at boot time."
23 if [ -f /etc/pf.boot.conf ]; then
24 /sbin/pfctl -q -f /etc/pf.boot.conf
25 elif [ -f /etc/defaults/pf.boot.conf ]; then
26 /sbin/pfctl -q -f /etc/defaults/pf.boot.conf
27 else
28 warn "can't load initial pf rules; pf start aborted."
29 stop_boot
30 exit 1
33 /sbin/pfctl -q -e
36 load_rc_config $name
37 run_rc_command "$1"