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