X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=3fc02326e436094e74a9d7a53d79e6f74badf45d;hp=bf5fa9261712071d29e41fc4286513169f659a0d;hb=14ce31b3b73c1ad6b448420d49ebb9d78c70d890;hpb=348b546fca905e5c591faeb1fb0d636918f9b0f1 diff --git a/autoconfig.functions b/autoconfig.functions index bf5fa92..3fc0232 100755 --- 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 -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