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 1b07f455aa
commit 0e85056365
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

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