diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-06-03 10:38:56 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-06-03 10:38:56 (EDT) |
commit | b43c8c2e6ba593169edafd9f1b5b67526edab044 (patch) | |
tree | 487f7fc6780621c03b303c51926f6235b9e61d96 | |
parent | 13b2b3da59777d540147ceaf9815f9945c3f8708 (diff) |
/etc/rc.common: Skip log_end() if log() not run.
This prevents messages like the following from "enable" and "disable"
actions:
[ ok ] ... done.
-rw-r--r-- | src.etc/rc.common | 2 |
1 files changed, 2 insertions, 0 deletions
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 '[[32m ok [39m] %s... done.\n' \ |