mihomo: sync upstream

last commit: 215df6da96
This commit is contained in:
gitea-action 2024-09-30 21:30:16 +08:00
parent 75d53d73fe
commit 27fd5ac673

View File

@ -87,22 +87,26 @@ endef
define Package/mihomo/postinst
#!/bin/sh
uci -q batch <<-EOF > /dev/null
if [ -z $${IPKG_INSTROOT} ]; then
uci -q batch <<-EOF > /dev/null
del firewall.mihomo
set firewall.mihomo=include
set firewall.mihomo.type=script
set firewall.mihomo.path=/etc/mihomo/scripts/tun.sh
set firewall.mihomo.fw4_compatible=1
commit firewall
EOF
EOF
fi
endef
define Package/mihomo/postrm
#!/bin/sh
uci -q batch <<-EOF > /dev/null
if [ -z $${IPKG_INSTROOT} ]; then
uci -q batch <<-EOF > /dev/null
del firewall.mihomo
commit firewall
EOF
EOF
fi
endef
define Build/Prepare