mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 19:12:33 +08:00
luci-app-zerotier: fix init
luci-app-zerotier: fix init
This commit is contained in:
parent
045d0d7b00
commit
e921293b03
@ -1,12 +1,15 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
|
|
||||||
START=90
|
START=90
|
||||||
|
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
|
|
||||||
PROG=/usr/bin/zerotier-one
|
PROG=/usr/bin/zerotier-one
|
||||||
CONFIG_PATH=/var/lib/zerotier-one
|
CONFIG_PATH=/var/lib/zerotier-one
|
||||||
|
|
||||||
|
service_triggers() {
|
||||||
|
procd_add_reload_trigger zerotier
|
||||||
|
}
|
||||||
|
|
||||||
section_enabled() {
|
section_enabled() {
|
||||||
config_get_bool enabled "$1" 'enabled' 0
|
config_get_bool enabled "$1" 'enabled' 0
|
||||||
[ $enabled -gt 0 ]
|
[ $enabled -gt 0 ]
|
||||||
@ -98,4 +101,3 @@ stop_service() {
|
|||||||
config_load 'zerotier'
|
config_load 'zerotier'
|
||||||
config_foreach stop_instance 'zerotier'
|
config_foreach stop_instance 'zerotier'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user