mirror of
https://github.com/RasppleII/a2cloud.git
synced 2024-12-21 22:29:24 +00:00
setup.txt: Start of systemd support
This commit is contained in:
parent
eddaf0d72d
commit
a91ea1aef6
@ -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)"
|
||||
|
Loading…
Reference in New Issue
Block a user