more generic systemd check

This commit is contained in:
j 2015-02-20 11:28:17 +00:00
parent 2a63a3b300
commit 88b73553db
1 changed files with 1 additions and 1 deletions

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"