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"
|
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" ;;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue