dufs: do not reload firewall manually

This is no longer required after commit openwrt/procd@2e206dbe77
("service: add support for triggers on service/instance data changes").

Also remove unused 'name' field.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen
2025-06-19 21:45:44 +08:00
committed by Tianling Shen
parent 99bc4798ed
commit 12b50193b1
2 changed files with 1 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=dufs
PKG_VERSION:=0.43.0
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/sigoden/dufs/tar.gz/v$(PKG_VERSION)?

View File

@@ -79,7 +79,6 @@ start_service() {
json_add_array firewall
json_add_object ""
json_add_string type rule
json_add_string name "Allow-access-dufs-at-$listen_port"
json_add_string src "*"
json_add_string dest_port "$listen_port"
json_add_string proto tcp
@@ -92,14 +91,6 @@ start_service() {
procd_close_instance
}
service_started() {
procd_set_config_changed firewall
}
service_stopped() {
procd_set_config_changed firewall
}
service_triggers() {
procd_add_reload_trigger "$CONF"
}