summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-privoxy/root/etc/uci-defaults
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-privoxy/root/etc/uci-defaults')
-rwxr-xr-xapplications/luci-app-privoxy/root/etc/uci-defaults/luci-privoxy12
1 files changed, 12 insertions, 0 deletions
diff --git a/applications/luci-app-privoxy/root/etc/uci-defaults/luci-privoxy b/applications/luci-app-privoxy/root/etc/uci-defaults/luci-privoxy
new file mode 100755
index 000000000..3405479b5
--- /dev/null
+++ b/applications/luci-app-privoxy/root/etc/uci-defaults/luci-privoxy
@@ -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