diff --git a/luci-app-passwall/Makefile b/luci-app-passwall/Makefile index 7e7fa3415..970b61ece 100644 --- a/luci-app-passwall/Makefile +++ b/luci-app-passwall/Makefile @@ -173,6 +173,12 @@ define Package/$(PKG_NAME)/conffiles /usr/share/passwall/rules/domains_excluded endef +define Package/$(PKG_NAME)/postrm +#!/bin/sh +rm -f $${IPKG_INSTROOT}/usr/share/passwall/rules/*.nft +exit 0 +endef + include $(TOPDIR)/feeds/luci/luci.mk # call BuildPackage - OpenWrt buildroot signature diff --git a/patch-luci-app-passwall.patch b/patch-luci-app-passwall.patch index e2c631a9c..49cd743d6 100644 --- a/patch-luci-app-passwall.patch +++ b/patch-luci-app-passwall.patch @@ -1,5 +1,5 @@ diff --git a/luci-app-passwall/Makefile b/luci-app-passwall/Makefile -index 3a668e2..7e7fa34 100644 +index db37783..970b61e 100644 --- a/luci-app-passwall/Makefile +++ b/luci-app-passwall/Makefile @@ -171,7 +171,6 @@ define Package/$(PKG_NAME)/conffiles @@ -9,7 +9,7 @@ index 3a668e2..7e7fa34 100644 -/www/luci-static/resources/qrcode.min.js endef - include $(TOPDIR)/feeds/luci/luci.mk + define Package/$(PKG_NAME)/postrm diff --git a/luci-app-passwall/luasrc/controller/passwall.lua b/luci-app-passwall/luasrc/controller/passwall.lua index 03006a6..f384bbc 100644 --- a/luci-app-passwall/luasrc/controller/passwall.lua