contrib/package: fix postinstall of freifunk-firewall
This commit is contained in:
parent
ac45654a16
commit
e2e59b6895
1 changed files with 7 additions and 6 deletions
|
@ -37,12 +37,13 @@ endef
|
||||||
|
|
||||||
define Package/freifunk-firewall/postinst
|
define Package/freifunk-firewall/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
[ -n "${IPKG_INSTROOT}" ] || {
|
||||||
if ! grep -q /etc/firewall.freifunk /etc/config/firewall; then
|
if ! grep -q /etc/firewall.freifunk /etc/config/firewall; then
|
||||||
uci add firewall include >/dev/null
|
uci add firewall include >/dev/null
|
||||||
uci set firewall.@include[-1].path=/etc/firewall.freifunk
|
uci set firewall.@include[-1].path=/etc/firewall.freifunk
|
||||||
uci commit firewall
|
uci commit firewall
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/freifunk-firewall/install
|
define Package/freifunk-firewall/install
|
||||||
|
|
Loading…
Reference in a new issue