[__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'
;;
alpine)
state="absent"
rc-update show | sed 's/ *//' | grep -q "^${name} |" && state="present"
state="$(rc-update show | sed 's/ *//' | grep -q "^${name} |" && echo present)"
[ "$state" ] || state="absent"
;;
*)
echo "Unsupported os: $os" >&2
exit 1