Module Name:    src
Committed By:   christos
Date:           Thu Jan  5 14:39:09 UTC 2017

Modified Files:
        src/etc/defaults: rc.conf
        src/etc/rc.d: Makefile
Added Files:
        src/etc/rc.d: npfd

Log Message:
add scripts for npfd


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/etc/defaults/rc.conf
cvs rdiff -u -r1.94 -r1.95 src/etc/rc.d/Makefile
cvs rdiff -u -r0 -r1.1 src/etc/rc.d/npfd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/defaults/rc.conf
diff -u src/etc/defaults/rc.conf:1.137 src/etc/defaults/rc.conf:1.138
--- src/etc/defaults/rc.conf:1.137	Sat Aug 20 07:21:50 2016
+++ src/etc/defaults/rc.conf	Thu Jan  5 09:39:09 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: rc.conf,v 1.137 2016/08/20 11:21:50 christos Exp $
+#	$NetBSD: rc.conf,v 1.138 2017/01/05 14:39:09 christos Exp $
 #
 # /etc/defaults/rc.conf --
 #	default configuration of /etc/rc.conf
@@ -171,6 +171,7 @@ ifconfig_wait_dad_flags="-w 15 -W 5"
 
 mdnsd=NO
 npf=NO
+npfd=NO
 ipfilter=NO		ipfilter_flags=""	# uses /etc/ipf.conf
 ipnat=NO					# uses /etc/ipnat.conf
 ipfs=NO			ipfs_flags=""		# save/load ipnat and ipf states

Index: src/etc/rc.d/Makefile
diff -u src/etc/rc.d/Makefile:1.94 src/etc/rc.d/Makefile:1.95
--- src/etc/rc.d/Makefile:1.94	Sat Dec 12 21:05:15 2015
+++ src/etc/rc.d/Makefile	Thu Jan  5 09:39:09 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.94 2015/12/13 02:05:15 christos Exp $
+# $NetBSD: Makefile,v 1.95 2017/01/05 14:39:09 christos Exp $
 
 .include <bsd.own.mk>
 
@@ -28,7 +28,7 @@ CONFIGFILES=\
 		ldconfig ldpd local lpd lvm \
 		makemandb mdnsd mixerctl modules mopd motd mountall \
 		mountcritlocal mountcritremote mountd moused mrouted \
-		named ndbootd network newsyslog nfsd nfslocking npf ntpd \
+		named ndbootd network newsyslog nfsd nfslocking npf npfd ntpd \
 		ntpdate \
 		perusertmp pf pf_boot pflogd postfix powerd ppp pwcheck \
 		quota \

Added files:

Index: src/etc/rc.d/npfd
diff -u /dev/null src/etc/rc.d/npfd:1.1
--- /dev/null	Thu Jan  5 09:39:09 2017
+++ src/etc/rc.d/npfd	Thu Jan  5 09:39:09 2017
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $NetBSD: npfd,v 1.1 2017/01/05 14:39:09 christos Exp $
+#
+
+# PROVIDE: npfd
+# REQUIRE: npf
+# BEFORE:  SERVERS
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="npfd"
+rcvar=$name
+command="/usr/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+
+load_rc_config $name
+run_rc_command "$1"

Reply via email to