From e2e59b6895fdce3618e9b04515e0a99c7b63fbb4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 16 Jun 2009 23:05:11 +0000 Subject: contrib/package: fix postinstall of freifunk-firewall --- contrib/package/freifunk-firewall/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 -- cgit v1.2.3