Use numeric prefixes for uci-defaults scripts
[project/luci.git] / applications / luci-app-privoxy / root / etc / uci-defaults / 40_luci-privoxy
diff --git a/applications/luci-app-privoxy/root/etc/uci-defaults/40_luci-privoxy b/applications/luci-app-privoxy/root/etc/uci-defaults/40_luci-privoxy
new file mode 100755 (executable)
index 0000000..3405479
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# no longer needed for "Save and Apply" to restart privoxy
+# luci-app-privoxy calls /etc/init.d/privoxy reload
+uci -q batch <<-EOF >/dev/null
+       delete ucitrack.@privoxy[-1]
+       commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+
+exit 0