Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc Add support for npfd_flags
details: https://anonhg.NetBSD.org/src/rev/8d871ebad631
branches: trunk
changeset: 972733:8d871ebad631
user: christos <christos%NetBSD.org@localhost>
date: Fri Jun 05 17:10:44 2020 +0000
description:
Add support for npfd_flags
diffstat:
etc/defaults/rc.conf | 4 ++--
etc/rc.d/npfd | 9 ++++++++-
2 files changed, 10 insertions(+), 3 deletions(-)
diffs (45 lines):
diff -r 78937bde0aef -r 8d871ebad631 etc/defaults/rc.conf
--- a/etc/defaults/rc.conf Fri Jun 05 15:19:08 2020 +0000
+++ b/etc/defaults/rc.conf Fri Jun 05 17:10:44 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rc.conf,v 1.156 2020/05/31 12:58:09 roy Exp $
+# $NetBSD: rc.conf,v 1.157 2020/06/05 17:10:44 christos Exp $
#
# /etc/defaults/rc.conf --
# default configuration of /etc/rc.conf
@@ -179,7 +179,7 @@
mdnsd=NO
npf=NO
-npfd=NO
+npfd=NO npfd_flags=""
ipfilter=NO ipfilter_flags="" # uses /etc/ipf.conf
ipnat=NO # uses /etc/ipnat.conf
ipfs=NO ipfs_flags="" # save/load ipnat and ipf states
diff -r 78937bde0aef -r 8d871ebad631 etc/rc.d/npfd
--- a/etc/rc.d/npfd Fri Jun 05 15:19:08 2020 +0000
+++ b/etc/rc.d/npfd Fri Jun 05 17:10:44 2020 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: npfd,v 1.1 2017/01/05 14:39:09 christos Exp $
+# $NetBSD: npfd,v 1.2 2020/06/05 17:10:44 christos Exp $
#
# PROVIDE: npfd
@@ -11,8 +11,15 @@
name="npfd"
rcvar=$name
+start_cmd="npfd_start"
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
+npfd_start()
+{
+ echo "Starting npfd..."
+ /usr/sbin/${name} $rc_flags
+}
+
load_rc_config $name
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index