summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-p2pblock/root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-p2pblock/root/etc')
-rwxr-xr-x[-rw-r--r--]applications/luci-p2pblock/root/etc/uci-defaults/luci-p2pblock4
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/luci-p2pblock/root/etc/uci-defaults/luci-p2pblock b/applications/luci-p2pblock/root/etc/uci-defaults/luci-p2pblock
index 3367c71658..030ebbed17 100644..100755
--- a/applications/luci-p2pblock/root/etc/uci-defaults/luci-p2pblock
+++ b/applications/luci-p2pblock/root/etc/uci-defaults/luci-p2pblock
@@ -1,9 +1,11 @@
#!/bin/sh
-uci batch <<-EOF 2>/dev/null
+uci -q batch <<-EOF >/dev/null
+ delete citrack.@freifunk_p2pblock[-1]
add ucitrack freifunk_p2pblock
set ucitrack.@freifunk_p2pblock[-1].init=freifunk-p2pblock
commit ucitrack
EOF
+rm -f /tmp/luci-indexcache
exit 0