openwrt_helloworld/mihomo/files/uci-defaults/firewall.sh
gitea-action 5feeddd3d9 mihomo: sync upstream
last commit: f188fce1cc
2024-11-22 19:30:24 +08:00

13 lines
282 B
Bash

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