From 9d60872d60f348ef12dd29c805ca79e105bc3f2e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 29 Sep 2026 03:47:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=9E=20Sync=202026-09-29=2003:47:59?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luci-app-open-box/Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/luci-app-open-box/Makefile b/luci-app-open-box/Makefile index 4a9696dd2..f79dce28c 100644 --- a/luci-app-open-box/Makefile +++ b/luci-app-open-box/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-open-box PKG_VERSION:=0.1.263 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MAINTAINER:=liandu2024 PKG_LICENSE:=GPL-3.0-or-later @@ -80,7 +80,7 @@ define Package/luci-app-open-box/install ln -sf /opt/open-box/openwrt/bin/open-box $(1)/usr/bin/open-box # 仅复制 _core 子目录内容,避免递归包含 - $(INSTALL_DIR) $(1)/opt/open-box + $(INSTALL_DIR) $(1)/opt/open-box $(1)/opt/open-box/data $(CP) $(PKG_BUILD_DIR)/_core/* $(1)/opt/open-box/ chmod -R 0755 $(1)/opt/open-box/bin $(1)/opt/open-box/node/bin $(1)/opt/open-box/openwrt/bin 2>/dev/null || true chmod +x $(1)/opt/open-box/update.sh $(1)/opt/open-box/uninstall.sh 2>/dev/null || true @@ -100,6 +100,16 @@ define Package/luci-app-open-box/prerm exit 0 endef +define Package/luci-app-open-box/postinst +#!/bin/sh +[ -n "$${IPKG_INSTROOT}" ] || { + rm -rf /tmp/luci-*cache* 2>/dev/null || true + /etc/init.d/rpcd restart >/dev/null 2>&1 || true + /etc/init.d/openbox-panel restart >/dev/null 2>&1 || true +} +exit 0 +endef + # 6. 包卸载后钩子:清理残留静态资源与防火墙规则 define Package/luci-app-open-box/postrm #!/bin/sh @@ -122,4 +132,4 @@ define Package/luci-app-open-box/postrm exit 0 endef -$(eval $(call BuildPackage,luci-app-open-box)) \ No newline at end of file +$(eval $(call BuildPackage,luci-app-open-box))