From 12b50193b1572cd751f56ea1c79251b3d0fed011 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Thu, 19 Jun 2025 21:45:44 +0800 Subject: [PATCH] dufs: do not reload firewall manually This is no longer required after commit openwrt/procd@2e206dbe77ec ("service: add support for triggers on service/instance data changes"). Also remove unused 'name' field. Signed-off-by: Tianling Shen --- net/dufs/Makefile | 2 +- net/dufs/files/dufs.init | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/net/dufs/Makefile b/net/dufs/Makefile index 5d3e3a5543..c22a5179dc 100644 --- a/net/dufs/Makefile +++ b/net/dufs/Makefile @@ -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)? diff --git a/net/dufs/files/dufs.init b/net/dufs/files/dufs.init index 0ca1b2b4e7..dee8d477de 100644 --- a/net/dufs/files/dufs.init +++ b/net/dufs/files/dufs.init @@ -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" } -- 2.30.2