revert previous; the fast-start functionality already existed, and
works at multi-user boot. (starting /etc/rc after single user boot doesn't exhibit this fast start behaviour).
This commit is contained in:
parent
a6d0c13e51
commit
caa2beb10e
4
etc/rc
4
etc/rc
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# $NetBSD: rc,v 1.151 2000/04/19 04:26:22 simonb Exp $
|
# $NetBSD: rc,v 1.152 2000/04/22 03:01:22 lukem Exp $
|
||||||
#
|
#
|
||||||
# rc.sh --
|
# rc.sh --
|
||||||
# Run the scripts in /etc/rc.d with rcorder.
|
# Run the scripts in /etc/rc.d with rcorder.
|
||||||
|
@ -36,7 +36,7 @@ trap "echo 'Boot interrupted.'; exit 1" 3
|
||||||
files=`rcorder /etc/rc.d/*`
|
files=`rcorder /etc/rc.d/*`
|
||||||
|
|
||||||
for i in $files; do
|
for i in $files; do
|
||||||
rc_fastboot=yes run_rc_script $i start
|
run_rc_script $i start
|
||||||
done
|
done
|
||||||
|
|
||||||
date
|
date
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: rc.subr,v 1.12 2000/04/19 04:26:22 simonb Exp $
|
# $NetBSD: rc.subr,v 1.13 2000/04/22 03:01:22 lukem Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 1997-2000 The NetBSD Foundation, Inc.
|
# Copyright (c) 1997-2000 The NetBSD Foundation, Inc.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
@ -233,12 +233,6 @@ run_rc_command()
|
||||||
err 3 'neither $rcvar or $name is set.'
|
err 3 'neither $rcvar or $name is set.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$rc_fastboot" ]; then
|
|
||||||
if checkyesno rc_fastboot; then
|
|
||||||
_arg=fast$_arg
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$_arg" in
|
case "$_arg" in
|
||||||
fast*)
|
fast*)
|
||||||
_arg=${_arg#fast}
|
_arg=${_arg#fast}
|
||||||
|
|
Loading…
Reference in New Issue