parent
75d53d73fe
commit
27fd5ac673
@ -87,22 +87,26 @@ endef
|
|||||||
|
|
||||||
define Package/mihomo/postinst
|
define Package/mihomo/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
uci -q batch <<-EOF > /dev/null
|
if [ -z $${IPKG_INSTROOT} ]; then
|
||||||
del firewall.mihomo
|
uci -q batch <<-EOF > /dev/null
|
||||||
set firewall.mihomo=include
|
del firewall.mihomo
|
||||||
set firewall.mihomo.type=script
|
set firewall.mihomo=include
|
||||||
set firewall.mihomo.path=/etc/mihomo/scripts/tun.sh
|
set firewall.mihomo.type=script
|
||||||
set firewall.mihomo.fw4_compatible=1
|
set firewall.mihomo.path=/etc/mihomo/scripts/tun.sh
|
||||||
commit firewall
|
set firewall.mihomo.fw4_compatible=1
|
||||||
EOF
|
commit firewall
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/mihomo/postrm
|
define Package/mihomo/postrm
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
uci -q batch <<-EOF > /dev/null
|
if [ -z $${IPKG_INSTROOT} ]; then
|
||||||
del firewall.mihomo
|
uci -q batch <<-EOF > /dev/null
|
||||||
commit firewall
|
del firewall.mihomo
|
||||||
EOF
|
commit firewall
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Prepare
|
define Build/Prepare
|
||||||
|
Loading…
Reference in New Issue
Block a user