Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Do not start npf again at reboot (it is started via...
details: https://anonhg.NetBSD.org/src/rev/f8fdfcd5e88f
branches: trunk
changeset: 998438:f8fdfcd5e88f
user: leot <leot%NetBSD.org@localhost>
date: Fri Apr 19 18:36:25 2019 +0000
description:
Do not start npf again at reboot (it is started via npf_boot)
diffstat:
etc/rc.d/npf | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r b22268ac6629 -r f8fdfcd5e88f etc/rc.d/npf
--- a/etc/rc.d/npf Fri Apr 19 16:28:32 2019 +0000
+++ b/etc/rc.d/npf Fri Apr 19 18:36:25 2019 +0000
@@ -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 @@
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()
Home |
Main Index |
Thread Index |
Old Index