projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Big rewrite of /etc/zsh/completion.d/, thanks to ft!
[grml-etc-core.git]
/
etc
/
grml
/
lsb-functions
diff --git
a/etc/grml/lsb-functions
b/etc/grml/lsb-functions
index
547db31
..
c21dd2c
100644
(file)
--- 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?
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"
RC_NOCOLOR="${RC_NOCOLOR:-no}"
# Can the terminal handle endcols?
RC_ENDCOL="yes"