Module Name:    src
Committed By:   leot
Date:           Fri Apr 19 18:36:25 UTC 2019

Modified Files:
        src/etc/rc.d: npf

Log Message:
Do not start npf again at reboot (it is started via npf_boot)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/etc/rc.d/npf

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

Modified files:

Index: src/etc/rc.d/npf
diff -u src/etc/rc.d/npf:1.3 src/etc/rc.d/npf:1.4
--- src/etc/rc.d/npf:1.3	Thu Nov  1 06:06:14 2012
+++ src/etc/rc.d/npf	Fri Apr 19 18:36:25 2019
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: npf,v 1.3 2012/11/01 06:06:14 mrg Exp $
+# $NetBSD: npf,v 1.4 2019/04/19 18:36:25 leot Exp $
 #
 # Public Domain.
 #
@@ -36,7 +36,11 @@ npf_start()
 	echo "Enabling NPF."
 	npf_cfg_check
 	/sbin/npfctl reload
-	/sbin/npfctl start
+
+	# The npf_boot script has enabled npf already.
+	if [ "$autoboot" != "yes" ]; then
+		/sbin/npfctl start
+	fi
 }
 
 npf_stop()

Reply via email to