projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
aaa1e7f
)
lsb-functions: include support for grml_colors handling
author
Michael Prokop
<mika@grml.org>
Fri, 13 Jan 2017 12:55:06 +0000
(13:55 +0100)
committer
Michael Prokop
<mika@grml.org>
Fri, 13 Jan 2017 12:55:06 +0000
(13:55 +0100)
It's annoying to have the according grml_colors support
in every single script, so instead lets inline this here.
etc/grml/lsb-functions
patch
|
blob
|
history
diff --git
a/etc/grml/lsb-functions
b/etc/grml/lsb-functions
index
d6513db
..
4dc8441
100644
(file)
--- a/
etc/grml/lsb-functions
+++ b/
etc/grml/lsb-functions
@@
-180,6
+180,11
@@
if [ -r /proc/cmdline ] ; then
fi
[ -n "$NOCOLORS" ] && RC_NOCOLOR='yes'
RC_NOCOLOR="${RC_NOCOLOR:-no}"
+if [ "$RC_NOCOLOR" = "no" ] ; then
+ if [ -r /etc/grml_colors ] ; then
+ . /etc/grml_colors
+ fi
+fi
# Can the terminal handle endcols?
if [ "${RC_NOCOLOR}" = "yes" ]; then