openwrt_helloworld/mihomo/files/uci-defaults/firewall.sh
gitea-action afd6be561e mihomo: sync upstream
last commit: f41356a78f
2024-09-30 22:30:29 +08:00

13 lines
271 B
Bash

#!/bin/sh
. "$IPKG_INSTROOT/etc/mihomo/scripts/constants.sh"
uci -q batch <<-EOF > /dev/null
del firewall.mihomo
set firewall.mihomo=include
set firewall.mihomo.type=script
set firewall.mihomo.path=$TUN_SH
set firewall.mihomo.fw4_compatible=1
commit firewall
EOF