Source-Changes-HG archive

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

[src/trunk]: src/etc Add an "rc_fastboot" variable check in rc.subr, that if ...



details:   https://anonhg.NetBSD.org/src/rev/e8991f9a71d9
branches:  trunk
changeset: 485099:e8991f9a71d9
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Apr 19 04:26:22 2000 +0000

description:
Add an "rc_fastboot" variable check in rc.subr, that if set adds
"fast" to the start of the run_rc_command arg.

/etc/rc calls each rc.d script with rc_fastboot=yes so that rc.subr
aware scripts to use "faststart" to skip the process running check.

diffstat:

 etc/rc      |  4 ++--
 etc/rc.subr |  8 +++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (42 lines):

diff -r 7f03c6408f45 -r e8991f9a71d9 etc/rc
--- a/etc/rc    Wed Apr 19 03:26:55 2000 +0000
+++ b/etc/rc    Wed Apr 19 04:26:22 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: rc,v 1.150 2000/03/29 02:13:51 enami Exp $
+# $NetBSD: rc,v 1.151 2000/04/19 04:26:22 simonb Exp $
 #
 # rc.sh --
 #      Run the scripts in /etc/rc.d with rcorder.
@@ -36,7 +36,7 @@
 files=`rcorder /etc/rc.d/*`
 
 for i in $files; do
-       run_rc_script $i start
+       rc_fastboot=yes run_rc_script $i start
 done
 
 date
diff -r 7f03c6408f45 -r e8991f9a71d9 etc/rc.subr
--- a/etc/rc.subr       Wed Apr 19 03:26:55 2000 +0000
+++ b/etc/rc.subr       Wed Apr 19 04:26:22 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.11 2000/03/10 11:39:27 lukem Exp $
+# $NetBSD: rc.subr,v 1.12 2000/04/19 04:26:22 simonb Exp $
 #
 # Copyright (c) 1997-2000 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -233,6 +233,12 @@
                err 3 'neither $rcvar or $name is set.'
        fi
 
+       if [ ! -z "$rc_fastboot" ]; then
+               if checkyesno rc_fastboot; then
+                       _arg=fast$_arg
+               fi
+       fi
+
        case "$_arg" in
        fast*)
                _arg=${_arg#fast}



Home | Main Index | Thread Index | Old Index