From 8eaac4b637d989680ad86dc3e84b0f3b547c1619 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 27 Jan 2016 16:47:23 +0100 Subject: Use numeric prefixes for uci-defaults scripts Signed-off-by: Jo-Philipp Wich --- .../luci-app-privoxy/root/etc/uci-defaults/40_luci-privoxy | 12 ++++++++++++ .../luci-app-privoxy/root/etc/uci-defaults/luci-privoxy | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100755 applications/luci-app-privoxy/root/etc/uci-defaults/40_luci-privoxy delete mode 100755 applications/luci-app-privoxy/root/etc/uci-defaults/luci-privoxy (limited to 'applications/luci-app-privoxy/root/etc') 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 index 0000000000..3405479b54 --- /dev/null +++ b/applications/luci-app-privoxy/root/etc/uci-defaults/40_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 diff --git a/applications/luci-app-privoxy/root/etc/uci-defaults/luci-privoxy b/applications/luci-app-privoxy/root/etc/uci-defaults/luci-privoxy deleted file mode 100755 index 3405479b54..0000000000 --- a/applications/luci-app-privoxy/root/etc/uci-defaults/luci-privoxy +++ /dev/null @@ -1,12 +0,0 @@ -#!/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 -- cgit v1.2.3