🤞 Sync 2026-09-29 03:47:59

This commit is contained in:
github-actions[bot] committed 2026-09-29 03:47:59 +08:00
1 parent 359c0e3d05
commit 9d60872d60
1 file changed
+13 -3
+13 -3
View File
@@ -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))
$(eval $(call BuildPackage,luci-app-open-box))