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
|
||||
#!/bin/sh
|
||||
|
||||
if ! grep -q /etc/firewall.freifunk /etc/config/firewall; then
|
||||
uci add firewall include >/dev/null
|
||||
uci set firewall.@include[-1].path=/etc/firewall.freifunk
|
||||
uci commit firewall
|
||||
fi
|
||||
[ -n "${IPKG_INSTROOT}" ] || {
|
||||
if ! grep -q /etc/firewall.freifunk /etc/config/firewall; then
|
||||
uci add firewall include >/dev/null
|
||||
uci set firewall.@include[-1].path=/etc/firewall.freifunk
|
||||
uci commit firewall
|
||||
fi
|
||||
}
|
||||
endef
|
||||
|
||||
define Package/freifunk-firewall/install
|
||||
|
|
Loading…
Reference in a new issue