|
|
|
@ -40,9 +40,6 @@ case "$state_should" in |
|
|
|
|
echo "systemctl -q enable '$name'" |
|
|
|
|
else |
|
|
|
|
case "$os" in |
|
|
|
|
alpine) |
|
|
|
|
echo "rc-update -q add '${name}'" |
|
|
|
|
;; |
|
|
|
|
debian) |
|
|
|
|
case "$os_version" in |
|
|
|
|
[1-7]*) |
|
|
|
@ -61,7 +58,7 @@ case "$state_should" in |
|
|
|
|
echo "update-rc.d '$name' defaults >/dev/null" |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
gentoo) |
|
|
|
|
alpine|gentoo) |
|
|
|
|
echo "rc-update add '$name' '$target_runlevel'" |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
@ -105,14 +102,11 @@ case "$state_should" in |
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
case "$os" in |
|
|
|
|
alpine) |
|
|
|
|
echo "rc-update -q del '${name}'" |
|
|
|
|
;; |
|
|
|
|
debian|ubuntu|devuan) |
|
|
|
|
echo "update-rc.d -f '$name' remove" |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
gentoo) |
|
|
|
|
alpine|gentoo) |
|
|
|
|
echo "rc-update del '$name' '$target_runlevel'" |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|