contrib/package/sysupgrade-atheros: fix postinstall

This commit is contained in:
Jo-Philipp Wich 2009-06-21 11:18:09 +00:00
parent 522f324ae3
commit 8616bbc872

View file

@ -40,10 +40,8 @@ endef
define Package/sysupgrade-atheros/postinst define Package/sysupgrade-atheros/postinst
#!/bin/sh #!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || { [ -n "$${IPKG_INSTROOT}" ] || {
if ! grep -q /etc/firewall.freifunk /etc/config/firewall; then if [ -f /lib/upgrade/kill-ffwatchd.sh ]; then
uci add firewall include >/dev/null rm -f /lib/upgrade/kill-ffwatchd.sh
uci set firewall.@include[-1].path=/etc/firewall.freifunk
uci commit firewall
fi fi
} }
endef endef