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" type="pkg_freebsd"
fi fi
;; ;;
gentoo) type="emerge" ;; gentoo|funtoo) type="emerge" ;;
suse) type="zypper" ;; suse) type="zypper" ;;
openwrt) type="opkg" ;; openwrt) type="opkg" ;;
openbsd) type="pkg_openbsd" ;; openbsd) type="pkg_openbsd" ;;

View file

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

View file

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