luci-app-zerotier: [2/2] drop network config when stop

Ref: #174.
This commit is contained in:
CN_SZTL 2020-08-04 01:42:11 +08:00
parent 6829f246e1
commit e0fdc3f2d1
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -95,6 +95,7 @@ stop_instance() {
local cfg="$1"
# Remove existing link or folder
rm -f $CONFIG_PATH/networks.d/*.conf
rm -rf $CONFIG_PATH
}
@ -102,3 +103,8 @@ stop_service() {
config_load 'zerotier'
config_foreach stop_instance 'zerotier'
}
reload_service() {
stop
start
}