The FANCYTTY shell variable is sourced from /etc/default/rcS before
etc/lsb-base-logging.sh .
- Systems with an administrator-provided /etc/lsb-base-logging.sh keep
working.
- Systems without /etc/lsb-base-logging.sh can now override FANCYTTY in
/etc/default/rcS too.
Thanks-To: Roger Leigh <rleigh@codelibre.net>
Reported-by: Stanislav Maslovski <stanislav.maslovski@gmail.com>
Closes: #673207
Git-Dch: Full
or a red [FAIL] depending on the daemon exit status.
The "Fancy output" can be disabled by setting the FANCYTTY variable to 0
- in the /etc/lsb-base-logging.sh configuration file.
+ in the /etc/default/rcS configuration file.
-- Didier Raboud <odyx@debian.org> Thu, 19 Apr 2012 11:25:01 +0200
/bin/sh, as init scripts sourcing this file may be running under any
Bourne-style shell permitted by Debian policy (i.e. not just bash).
-"Fancy output" can be overridden by setting FANCYTTY=0 in this file.
+ - FANCY OUTPUT
+
+"Fancy output" can be overridden by setting FANCYTTY=0 in /etc/default/rcS.
+
+ - OUTPUT FUNCTIONS
From lsb-base 3.2-14, you can use the following hook functions which
are called by the appropriate functions, instead of supplying your own
[ -r $hook ] && . $hook || true
done
-FANCYTTY=
+FANCYTTY=$([ -e /etc/default/rcS ] && . /etc/default/rcS && echo $FANCYTTY)
[ -e /etc/lsb-base-logging.sh ] && . /etc/lsb-base-logging.sh || true