setup.txt: Start of systemd support

This commit is contained in:
T. Joseph Carter 2016-04-16 05:34:55 -07:00
parent eddaf0d72d
commit a91ea1aef6

View File

@ -49,6 +49,15 @@ if [[ $debianVersion ]]; then
fi
fi
isSystemd=
isSysVInit=
# If you really want something else, *you* maintain it!
if command -v systemctl > /dev/null && systemctl | grep -q '\-\.mount'; then
isSystemd=1
elif [[ -f /etc/inittab ]]; then
isSysVInit=1
fi
if [[ -f /usr/local/etc/A2CLOUD-version ]]; then
installedVersion="$(cat /usr/local/etc/A2CLOUD-version)"