luci-app-zerotier: fix init

luci-app-zerotier: fix init
This commit is contained in:
CN_SZTL 2020-02-11 08:47:50 +08:00
parent 045d0d7b00
commit e921293b03
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -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'
} }