Rework LuCI build system
[project/luci.git] / applications / luci-app-ushare / root / etc / uci-defaults / luci-ushare
diff --git a/applications/luci-app-ushare/root/etc/uci-defaults/luci-ushare b/applications/luci-app-ushare/root/etc/uci-defaults/luci-ushare
new file mode 100755 (executable)
index 0000000..8bcb6e4
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+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