forked from ungleich-public/cdist
add some funtoo support
This commit is contained in:
parent
e50ea3358a
commit
4f6d528137
3 changed files with 5 additions and 1 deletions
|
@ -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" ;;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue