Rework LuCI build system
[project/luci.git] / applications / luci-app-polipo / root / etc / uci-defaults / luci-polipo
diff --git a/applications/luci-app-polipo/root/etc/uci-defaults/luci-polipo b/applications/luci-app-polipo/root/etc/uci-defaults/luci-polipo
new file mode 100755 (executable)
index 0000000..0c57063
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+       delete ucitrack.@polipo[-1]
+       add ucitrack polipo
+       set ucitrack.@polipo[-1].init=polipo
+       commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0