X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=contrib%2Fpackage%2Ffreifunk-firewall%2FMakefile;h=24be151e4f4652c392e508cb542f7f2e0af5ebdd;hp=d2ae0758829ed8f03e55720c2e79264f4324295d;hb=e2e59b6895fdce3618e9b04515e0a99c7b63fbb4;hpb=ac45654a16e7c5e2416e3566e049de586cebc2f5 diff --git a/contrib/package/freifunk-firewall/Makefile b/contrib/package/freifunk-firewall/Makefile index d2ae07588..24be151e4 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