projects
/
grml-autoconfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Source /etc/grml_nocolors with nocolor boot option
[grml-autoconfig.git]
/
autoconfig.functions
diff --git
a/autoconfig.functions
b/autoconfig.functions
index
bf5fa92
..
19a240d
100755
(executable)
--- a/
autoconfig.functions
+++ b/
autoconfig.functions
@@
-23,7
+23,7
@@
umask 022
# Ignore these signals in non-interactive mode: INT, TERM, SEGV
[ -z "$PS1" ] && trap "" 2 3 11
# Ignore these signals in non-interactive mode: INT, TERM, SEGV
[ -z "$PS1" ] && trap "" 2 3 11
-if [
[ "$(realpath "$(cat /proc/1/cmdline)")" == "/lib/systemd/systemd" ]
] ; then
+if [
"$(cat /proc/1/comm 2>/dev/null)" = "systemd"
] ; then
SYSTEMD=true
else
SYSTEMD=false
SYSTEMD=true
else
SYSTEMD=false
@@
-196,6
+196,7
@@
fi
if checkbootparam 'nocolor'; then
RC_NOCOLOR=yes
. /etc/grml/lsb-functions
if checkbootparam 'nocolor'; then
RC_NOCOLOR=yes
. /etc/grml/lsb-functions
+ . /etc/grml_nocolors
einfo "Disabling colors in bootsequence as requested on commandline." ; eend 0
else
. /etc/grml/lsb-functions
einfo "Disabling colors in bootsequence as requested on commandline." ; eend 0
else
. /etc/grml/lsb-functions