projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ac45654
)
contrib/package: fix postinstall of freifunk-firewall
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 16 Jun 2009 23:05:11 +0000
(23:05 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 16 Jun 2009 23:05:11 +0000
(23:05 +0000)
contrib/package/freifunk-firewall/Makefile
patch
|
blob
|
history
diff --git
a/contrib/package/freifunk-firewall/Makefile
b/contrib/package/freifunk-firewall/Makefile
index
d2ae075
..
24be151
100644
(file)
--- a/
contrib/package/freifunk-firewall/Makefile
+++ b/
contrib/package/freifunk-firewall/Makefile
@@
-37,12
+37,13
@@
endef
define Package/freifunk-firewall/postinst
#!/bin/sh
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
endef
define Package/freifunk-firewall/install