npf_boot revision 1.4
11.1Ssevan#!/bin/sh 21.1Ssevan# 31.4Smartin# $NetBSD: npf_boot,v 1.4 2020/09/08 12:52:18 martin Exp $ 41.1Ssevan# 51.1Ssevan 61.1Ssevan# PROVIDE: npf_boot 71.4Smartin# REQUIRE: root bootconf CRITLOCALMOUNTED tty 81.1Ssevan# BEFORE: network 91.1Ssevan 101.1Ssevan$_rc_subr_loaded . /etc/rc.subr 111.1Ssevan 121.1Ssevanname="npf_boot" 131.1Ssevanrcvar="npf" 141.1Ssevanstart_cmd="npf_boot_start" 151.1Ssevanstop_cmd=":" 161.1Ssevan 171.1Ssevannpf_boot_start() 181.1Ssevan{ 191.1Ssevan if [ -f /etc/npf.boot.conf ]; then 201.1Ssevan /sbin/npfctl reload /etc/npf.boot.conf 211.1Ssevan elif [ -f /etc/defaults/npf.boot.conf ]; then 221.1Ssevan /sbin/npfctl reload /etc/defaults/npf.boot.conf 231.1Ssevan else 241.1Ssevan warn "can't load initial npf rules; npf start aborted." 251.1Ssevan stop_boot 261.1Ssevan exit 1 271.1Ssevan fi 281.1Ssevan 291.1Ssevan /sbin/npfctl start 301.1Ssevan} 311.1Ssevan 321.1Ssevanload_rc_config $name 331.1Ssevanrun_rc_command "$1" 34