X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Flsb-functions;h=c21dd2c6cab1a5335754c4dd1119bdf4743fd77f;hb=97ee7d757f2b601dd2bd3ff8d9557e4c03f3ef4d;hp=547db313e58e5b05cabadcbc57827a9070257b73;hpb=fa041d31dc8589c4b37041a6fa86289f68ccc336;p=grml-etc-core.git 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"