applications: revise uci-defaults scripts
[project/luci.git] / applications / luci-p2pblock / root / etc / uci-defaults / luci-p2pblock
old mode 100644 (file)
new mode 100755 (executable)
index 3367c71..030ebbe
@@ -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