Use checkyesno to check the state of $rc_configured like for any other
variable set in /etc/rc.conf. Pointed out by Erik Bertelsen <erik@mediator.uni-c.dk> in pr 8522.
This commit is contained in:
parent
781f26d383
commit
1299db6b8b
4
etc/rc
4
etc/rc
@ -1,4 +1,4 @@
|
||||
# $NetBSD: rc,v 1.134 1999/10/05 10:54:27 darrenr Exp $
|
||||
# $NetBSD: rc,v 1.135 1999/10/30 12:35:30 frueauf Exp $
|
||||
# originally from: @(#)rc 8.2 (Berkeley) 3/17/94
|
||||
|
||||
# System startup script run by init on autoboot
|
||||
@ -85,7 +85,7 @@ if [ -f /etc/rc.conf ]; then
|
||||
. /etc/rc.conf
|
||||
fi
|
||||
|
||||
if [ "$rc_configured" != YES ]; then
|
||||
if ! checkyesno rc_configured; then
|
||||
echo "/etc/rc.conf is not configured. Multiuser boot aborted."
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user