Source-Changes-HG archive

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

[src/trunk]: src/etc/rc.d Add $_rc_subr_loaded before ". /etc/rc.subr" for sp...



details:   https://anonhg.NetBSD.org/src/rev/d6c3efee5ea4
branches:  trunk
changeset: 964581:d6c3efee5ea4
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Wed Aug 07 19:30:00 2019 +0000

description:
Add $_rc_subr_loaded before ". /etc/rc.subr" for speedup and consistency.

diffstat:

 etc/rc.d/automount    |  4 ++--
 etc/rc.d/automountd   |  4 ++--
 etc/rc.d/autounmountd |  2 +-
 etc/rc.d/ip6addrctl   |  2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diffs (62 lines):

diff -r 1d17c7008e22 -r d6c3efee5ea4 etc/rc.d/automount
--- a/etc/rc.d/automount        Wed Aug 07 19:21:48 2019 +0000
+++ b/etc/rc.d/automount        Wed Aug 07 19:30:00 2019 +0000
@@ -1,13 +1,13 @@
 #!/bin/sh
 #
-# $NetBSD: automount,v 1.1 2018/01/09 03:31:14 christos Exp $
+# $NetBSD: automount,v 1.2 2019/08/07 19:30:00 nakayama Exp $
 #
 
 # PROVIDE: automount
 # REQUIRE: automountd
 # KEYWORD: nojail shutdown
 
-. /etc/rc.subr
+$_rc_subr_loaded . /etc/rc.subr
 
 name="automount"
 rcvar="autofs"
diff -r 1d17c7008e22 -r d6c3efee5ea4 etc/rc.d/automountd
--- a/etc/rc.d/automountd       Wed Aug 07 19:21:48 2019 +0000
+++ b/etc/rc.d/automountd       Wed Aug 07 19:30:00 2019 +0000
@@ -1,13 +1,13 @@
 #!/bin/sh
 #
-# $NetBSD: automountd,v 1.1 2018/01/09 03:31:14 christos Exp $
+# $NetBSD: automountd,v 1.2 2019/08/07 19:30:00 nakayama Exp $
 #
 
 # PROVIDE: automountd
 # REQUIRE: DAEMON
 # KEYWORD: nojail
 
-. /etc/rc.subr
+$_rc_subr_loaded . /etc/rc.subr
 
 name="automountd"
 rcvar="autofs"
diff -r 1d17c7008e22 -r d6c3efee5ea4 etc/rc.d/autounmountd
--- a/etc/rc.d/autounmountd     Wed Aug 07 19:21:48 2019 +0000
+++ b/etc/rc.d/autounmountd     Wed Aug 07 19:30:00 2019 +0000
@@ -7,7 +7,7 @@
 # REQUIRE: DAEMON
 # KEYWORD: nojail
 
-. /etc/rc.subr
+$_rc_subr_loaded . /etc/rc.subr
 
 name="autounmountd"
 rcvar="autofs"
diff -r 1d17c7008e22 -r d6c3efee5ea4 etc/rc.d/ip6addrctl
--- a/etc/rc.d/ip6addrctl       Wed Aug 07 19:21:48 2019 +0000
+++ b/etc/rc.d/ip6addrctl       Wed Aug 07 19:30:00 2019 +0000
@@ -6,7 +6,7 @@
 # PROVIDE: ip6addrctl
 # REQUIRE: root bootconf mountcritlocal tty
 
-. /etc/rc.subr
+$_rc_subr_loaded . /etc/rc.subr
 
 name="ip6addrctl"
 rcvar="ip6addrctl"



Home | Main Index | Thread Index | Old Index