diff options
Diffstat (limited to 'contrib/package/freifunk-firewall')
-rw-r--r-- | contrib/package/freifunk-firewall/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/contrib/package/freifunk-firewall/Makefile b/contrib/package/freifunk-firewall/Makefile index d2ae075882..24be151e4f 100644 --- a/contrib/package/freifunk-firewall/Makefile +++ b/contrib/package/freifunk-firewall/Makefile @@ -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 |