Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d No need to empose the script to be runnable during ...



details:   https://anonhg.NetBSD.org/src/rev/9230bac5eeb7
branches:  trunk
changeset: 455056:9230bac5eeb7
user:      sevan <sevan%NetBSD.org@localhost>
date:      Sat Oct 05 22:21:29 2019 +0000

description:
No need to empose the script to be runnable during boot time, it prevents the
script from wroking if the system is booted into single user mode & then
moved onto multi-user mode.

Reported by <pgoyette> for NPF but the issue is there in PF too.

diffstat:

 etc/rc.d/npf_boot |  6 +-----
 etc/rc.d/pf_boot  |  6 +-----
 2 files changed, 2 insertions(+), 10 deletions(-)

diffs (44 lines):

diff -r afe3e98f0a6a -r 9230bac5eeb7 etc/rc.d/npf_boot
--- a/etc/rc.d/npf_boot Sat Oct 05 22:06:29 2019 +0000
+++ b/etc/rc.d/npf_boot Sat Oct 05 22:21:29 2019 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: npf_boot,v 1.1 2019/04/02 01:50:32 sevan Exp $
+# $NetBSD: npf_boot,v 1.2 2019/10/05 22:21:29 sevan Exp $
 #
 
 # PROVIDE: npf_boot
@@ -16,10 +16,6 @@
 
 npf_boot_start()
 {
-       if [ "$autoboot" != "yes" ]; then
-               err 1 "This script should only be executed at boot time."
-       fi
-
        if [ -f /etc/npf.boot.conf ]; then
                /sbin/npfctl reload /etc/npf.boot.conf
        elif [ -f /etc/defaults/npf.boot.conf ]; then
diff -r afe3e98f0a6a -r 9230bac5eeb7 etc/rc.d/pf_boot
--- a/etc/rc.d/pf_boot  Sat Oct 05 22:06:29 2019 +0000
+++ b/etc/rc.d/pf_boot  Sat Oct 05 22:21:29 2019 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: pf_boot,v 1.4 2008/11/22 20:23:33 tsutsui Exp $
+# $NetBSD: pf_boot,v 1.5 2019/10/05 22:21:29 sevan Exp $
 #
 
 # PROVIDE: pf_boot
@@ -16,10 +16,6 @@
 
 pf_boot_start()
 {
-       if [ "$autoboot" != "yes" ]; then
-               err 1 "This script should only be executed at boot time."
-       fi
-
        if [ -f /etc/pf.boot.conf ]; then
                /sbin/pfctl -q -f /etc/pf.boot.conf
        elif [ -f /etc/defaults/pf.boot.conf ]; then



Home | Main Index | Thread Index | Old Index