mirror of
https://github.com/Snowy-Fluffy/zapret.installer.git
synced 2025-12-06 09:03:04 +03:00
@@ -48,7 +48,11 @@ manage_autostart() {
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
openrc)
|
openrc)
|
||||||
service zapret "$1"
|
if [[ "$1" == "enable" ]]; then
|
||||||
|
rc-update add zapret default
|
||||||
|
else
|
||||||
|
rc-update del zapret
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
procd)
|
procd)
|
||||||
service zapret "$1"
|
service zapret "$1"
|
||||||
@@ -230,7 +234,7 @@ detect_init() {
|
|||||||
INIT_SYSTEM="systemd"
|
INIT_SYSTEM="systemd"
|
||||||
elif [ $SYSTEM == openwrt ]; then
|
elif [ $SYSTEM == openwrt ]; then
|
||||||
INIT_SYSTEM="procd"
|
INIT_SYSTEM="procd"
|
||||||
elif command -v openrc-init >/dev/null 2>&1; then
|
elif command -v openrc >/dev/null 2>&1; then
|
||||||
INIT_SYSTEM="openrc"
|
INIT_SYSTEM="openrc"
|
||||||
elif command -v runit >/dev/null 2>&1; then
|
elif command -v runit >/dev/null 2>&1; then
|
||||||
INIT_SYSTEM="runit"
|
INIT_SYSTEM="runit"
|
||||||
@@ -243,4 +247,4 @@ detect_init() {
|
|||||||
else
|
else
|
||||||
error_exit "Не удалось определить init."
|
error_exit "Не удалось определить init."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user