Detect BSD-style (rc.d) init in Linux systems

This commit is contained in:
pyllyukko 2019-06-06 15:41:29 +03:00
parent a64e3966c9
commit 9b02934339
No known key found for this signature in database
GPG Key ID: 6D64E828379852AC
1 changed files with 5 additions and 1 deletions

View File

@ -96,7 +96,11 @@
;;
"init" | "initsplash")
SERVICE_MANAGER="SysV Init"
if [ -d ${ROOTDIR}etc/rc.d ]; then
SERVICE_MANAGER="bsdrc.d"
else
SERVICE_MANAGER="SysV Init"
fi
;;
systemd)
SERVICE_MANAGER="systemd"