contrib/package/sysupgrade-atheros: fix postinstall
This commit is contained in:
parent
522f324ae3
commit
8616bbc872
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue