summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-p2pblock/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-01-14 17:48:44 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-01-14 17:48:44 +0000
commit6811edb3d9fe289190fbc7337d372027a655daf8 (patch)
treee9019876b2aff8b48a853ded274ece488247a6d5 /applications/luci-p2pblock/root
parentba949a84f61729b1cbfecd2780b9c4d5095c2d51 (diff)
applications: revise uci-defaults scripts
Diffstat (limited to 'applications/luci-p2pblock/root')
-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 3367c7165..030ebbed1 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