Adapt /etc/rc.d/bootconf.sh script to the new /etc/rc:

Add "KEYWORD: interactive" so that the script's prompts work,
and use rc_print_metadata to add a message to the log.

Part of the /etc/rc silent changes requested in PR 41946
and proposed in tech-userlevel.
This commit is contained in:
apb 2009-09-11 18:17:43 +00:00
parent 89fd535731
commit bd87591cb3

View File

@ -1,10 +1,11 @@
#!/bin/sh #!/bin/sh
# #
# $NetBSD: bootconf.sh,v 1.11 2009/09/06 12:30:45 apb Exp $ # $NetBSD: bootconf.sh,v 1.12 2009/09/11 18:17:43 apb Exp $
# #
# PROVIDE: bootconf # PROVIDE: bootconf
# REQUIRE: mountcritlocal # REQUIRE: mountcritlocal
# KEYWORD: interactive
$_rc_subr_loaded . /etc/rc.subr $_rc_subr_loaded . /etc/rc.subr
@ -66,6 +67,8 @@ bootconf_start()
fi fi
done done
rc_print_metadata "note:Using configuration \"${conf}\""
case $conf in case $conf in
current|default) current|default)
;; ;;