[__start_on_boot] alpine fix

This commit is contained in:
Nico Schottelius 2019-04-15 16:41:27 +02:00
parent 707426d1f0
commit dbf29c18c1

View file

@ -89,8 +89,10 @@ else
rcctl ls on | grep "^${name}$" && state='present' rcctl ls on | grep "^${name}$" && state='present'
;; ;;
alpine) alpine)
state="absent" state="$(rc-update show | sed 's/ *//' | grep -q "^${name} |" && echo present)"
rc-update show | sed 's/ *//' | grep -q "^${name} |" && state="present" [ "$state" ] || state="absent"
;;
*) *)
echo "Unsupported os: $os" >&2 echo "Unsupported os: $os" >&2
exit 1 exit 1