summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ushare
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-ushare')
-rwxr-xr-x[-rw-r--r--]applications/luci-ushare/root/etc/uci-defaults/luci-ushare6
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/luci-ushare/root/etc/uci-defaults/luci-ushare b/applications/luci-ushare/root/etc/uci-defaults/luci-ushare
index 262420eba..8bcb6e411 100644..100755
--- a/applications/luci-ushare/root/etc/uci-defaults/luci-ushare
+++ b/applications/luci-ushare/root/etc/uci-defaults/luci-ushare
@@ -1,7 +1,11 @@
#!/bin/sh
-uci batch <<-EOF
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@ushare[-1]
add ucitrack ushare
set ucitrack.@ushare[-1].init=ushare
commit ucitrack
EOF
+
+rm -f /tmp/luci-indexcache
+exit 0