add some funtoo support

This commit is contained in:
thijso 2022-08-08 12:23:44 +02:00
parent e50ea3358a
commit 4f6d528137
3 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,7 @@ else
type="pkg_freebsd"
fi
;;
gentoo) type="emerge" ;;
gentoo|funtoo) type="emerge" ;;
suse) type="zypper" ;;
openwrt) type="opkg" ;;
openbsd) type="pkg_openbsd" ;;

View File

@ -3,6 +3,8 @@
# Assume systemd if systemctl is in PATH.
if [ "$(command -v systemctl)" ]; then
printf "systemd"
elif [ "$(command -v rc)" ]; then
printf "openrc"
else
printf "unknown"
fi

View File

@ -6,4 +6,6 @@ action="$(cat "$__object/parameter/action")"
if [ "$manager" = "unknown" ]; then
echo "service '$name' '$action'"
elif[ "$manager" = "openrc" ]; then
echo "rc-service $name $action"
fi