mirror of
https://github.com/RasppleII/a2cloud.git
synced 2025-08-07 11:26:59 +00:00
setup.txt: Start of systemd support
This commit is contained in:
@@ -49,6 +49,15 @@ if [[ $debianVersion ]]; then
|
|||||||
fi
|
fi
|
||||||
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
|
if [[ -f /usr/local/etc/A2CLOUD-version ]]; then
|
||||||
installedVersion="$(cat /usr/local/etc/A2CLOUD-version)"
|
installedVersion="$(cat /usr/local/etc/A2CLOUD-version)"
|
||||||
|
Reference in New Issue
Block a user