From 2ee956e32f096610359390efe08ac442c470aa23 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 13 Jan 2017 13:55:06 +0100 Subject: [PATCH] lsb-functions: include support for grml_colors handling It's annoying to have the according grml_colors support in every single script, so instead lets inline this here. --- etc/grml/lsb-functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index d6513db..4dc8441 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -180,6 +180,11 @@ if [ -r /proc/cmdline ] ; then fi [ -n "$NOCOLORS" ] && RC_NOCOLOR='yes' RC_NOCOLOR="${RC_NOCOLOR:-no}" +if [ "$RC_NOCOLOR" = "no" ] ; then + if [ -r /etc/grml_colors ] ; then + . /etc/grml_colors + fi +fi # Can the terminal handle endcols? if [ "${RC_NOCOLOR}" = "yes" ]; then -- 2.1.4