Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Adapt /etc/rc.d/bootconf.sh script to the new /etc/rc:
details: https://anonhg.NetBSD.org/src/rev/09a84f059c83
branches: trunk
changeset: 747332:09a84f059c83
user: apb <apb%NetBSD.org@localhost>
date: Fri Sep 11 18:17:43 2009 +0000
description:
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.
diffstat:
etc/rc.d/bootconf.sh | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r e3dec08bb5df -r 09a84f059c83 etc/rc.d/bootconf.sh
--- a/etc/rc.d/bootconf.sh Fri Sep 11 18:17:04 2009 +0000
+++ b/etc/rc.d/bootconf.sh Fri Sep 11 18:17:43 2009 +0000
@@ -1,10 +1,11 @@
#!/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
# REQUIRE: mountcritlocal
+# KEYWORD: interactive
$_rc_subr_loaded . /etc/rc.subr
@@ -66,6 +67,8 @@
fi
done
+ rc_print_metadata "note:Using configuration \"${conf}\""
+
case $conf in
current|default)
;;
Home |
Main Index |
Thread Index |
Old Index