From b43c8c2e6ba593169edafd9f1b5b67526edab044 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 03 Jun 2014 10:38:56 -0400 Subject: /etc/rc.common: Skip log_end() if log() not run. This prevents messages like the following from "enable" and "disable" actions: [ ok ] ... done. --- diff --git a/src.etc/rc.common b/src.etc/rc.common index e578ad0..c6ccf85 100644 --- a/src.etc/rc.common +++ b/src.etc/rc.common @@ -70,6 +70,8 @@ log_end() { local es="${1}" + [ "x${LOG_MSG:+set}" = 'xset' ] || return 0 + case ${es} in 0) tty_printf '[ ok ] %s... done.\n' \ -- cgit v0.9.1