From 97ee7d757f2b601dd2bd3ff8d9557e4c03f3ef4d Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 17 Mar 2007 15:19:23 +0100 Subject: [PATCH] /etc/grml/lsb-functions: set RC_NOCOLOR if nocolor string is present in /proc/cmdline --- debian/changelog | 7 +++++++ etc/grml/lsb-functions | 3 +++ 2 files changed, 10 insertions(+) diff --git a/debian/changelog b/debian/changelog index 74e4335..5d43ee2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-etc-core (0.2.34) unstable; urgency=low + + * /etc/grml/lsb-functions: set RC_NOCOLOR if nocolor string is + present in /proc/cmdline + + -- Michael Prokop Sat, 17 Mar 2007 15:17:45 +0100 + grml-etc-core (0.2.33) unstable; urgency=low * /etc/zsh/zshenv: fix sourcing of /etc/timezone diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index 547db31..c21dd2c 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -160,6 +160,9 @@ RC_QUIET_STDOUT="no" RC_VERBOSE="${RC_VERBOSE:-no}" # Should we use color? +if [ -r /proc/cmdline ] ; then + grep -q ' nocolor' /proc/cmdline && RC_NOCOLOR='yes' +fi RC_NOCOLOR="${RC_NOCOLOR:-no}" # Can the terminal handle endcols? RC_ENDCOL="yes" -- 2.1.4