2021-01-11 13:10:55 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
__package "runit"
|
|
|
|
|
2021-10-30 08:40:01 +00:00
|
|
|
os="$(cat "${__global}/explorer/os")"
|
|
|
|
case "${os}" in
|
|
|
|
debian|devuan)
|
|
|
|
# zero-config sysvinit and systemd compatibility
|
|
|
|
__package runit-run
|
|
|
|
;;
|
|
|
|
freebsd)
|
|
|
|
__key_value \
|
|
|
|
--file "/etc/rc.conf" \
|
|
|
|
--key "runsvdir_enable" \
|
|
|
|
--delimiter "=" \
|
|
|
|
--value "yes" \
|
|
|
|
"runsvdir_enable"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Your OS '${os}' is currently not supported." >&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|