/etc/grml/lsb-functions: support disabling colors through $NOCOLORS
[grml-etc-core.git] / etc / grml / lsb-functions
index 11ddbcf..d72076f 100644 (file)
@@ -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?