summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2009-09-17 19:05:47 +0000
committerdougb <dougb@FreeBSD.org>2009-09-17 19:05:47 +0000
commita441f407c131c7ff6dfba3ac0a14014d29d99ecf (patch)
tree94a6641582cde72db11545d1d6a6a7f69d0e4a3b /etc
parenteefaeaf649897bfd81c61887468048633a27c1d4 (diff)
downloadFreeBSD-src-a441f407c131c7ff6dfba3ac0a14014d29d99ecf.zip
FreeBSD-src-a441f407c131c7ff6dfba3ac0a14014d29d99ecf.tar.gz
Add a knob to show 'Starting foo:' messages when faststart is used,
such as at boot time.
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf1
-rw-r--r--etc/rc.subr8
2 files changed, 8 insertions, 1 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index b18188f..cc4b6a5 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -23,6 +23,7 @@
rc_debug="NO" # Set to YES to enable debugging output from rc.d
rc_info="NO" # Enables display of informational messages at boot.
+rc_startmsgs="NO" # Show "Starting foo:" messages at boot
rcshutdown_timeout="30" # Seconds to wait before terminating rc.shutdown
early_late_divider="FILESYSTEMS" # Script that separates early/late
# stages of the boot process. Make sure you know
diff --git a/etc/rc.subr b/etc/rc.subr
index c373484..6cb7db5 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -708,7 +708,13 @@ run_rc_command()
# setup the full command to run
#
- [ -z "${rc_quiet}" ] && echo "Starting ${name}."
+ _show_startmsgs=1
+ if [ -n "${rc_quiet}" ]; then
+ if ! checkyesno rc_startmsgs; then
+ unset _show_startmsgs
+ fi
+ fi
+ [ -n "$_show_startmsgs" ] && echo "Starting ${name}."
if [ -n "$_chroot" ]; then
_doit="\
${_nice:+nice -n $_nice }\
OpenPOWER on IntegriCloud