more generic systemd check

This commit is contained in:
j 2015-02-20 11:28:17 +00:00
parent 2a63a3b300
commit 88b73553db

View file

@ -6,7 +6,7 @@ else
ID=unknown
fi
UBUNTU_VERSION="$VERSION_ID"
if [ "$ID" == "debian" ]; then
if [ -d "/run/systemd/system/" ]; then
SYSTEMD="yes"
else
SYSTEMD="no"