From ac1c83300b0fb632e03b36a0c656895f865a2bd5 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 17 Sep 2007 17:17:02 +0200 Subject: [PATCH] /etc/grml/lsb-functions: support disabling colors through $NOCOLORS --- debian/changelog | 4 +++- etc/grml/lsb-functions | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 1570370..66dd1de 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,8 +6,10 @@ grml-etc-core (0.3.27) unstable; urgency=low [ Michael Prokop ] * Update /etc/apt/sources.list.grml. + * /etc/grml/lsb-functions: support disabling + colors through $NOCOLORS - -- Michael Prokop Sun, 16 Sep 2007 20:23:22 +0200 + -- Michael Prokop Mon, 17 Sep 2007 17:16:26 +0200 grml-etc-core (0.3.26) unstable; urgency=low diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index 11ddbcf..d72076f 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -143,6 +143,7 @@ RC_DOT_PATTERN='' if [ -r /proc/cmdline ] ; then grep -q ' nocolor' /proc/cmdline && RC_NOCOLOR='yes' fi +[ -n "$NOCOLORS" ] && RC_NOCOLOR='yes' RC_NOCOLOR="${RC_NOCOLOR:-no}" # Can the terminal handle endcols? -- 2.1.4