[__start_on_boot] alpine fix
This commit is contained in:
parent
707426d1f0
commit
dbf29c18c1
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue