summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2023-10-05 14:55:29 +0000
committerStan Grishin <stangri@melmac.ca>2023-10-05 14:55:48 +0000
commitd15a1fb6939684583b327f7388a1473c7d49841d (patch)
tree660e308295f7ade4f4102bfbe848ade07a8e0a74 /applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast
parent127ca64a672ba4b748ea230cce79b0c4cc1c8207 (diff)
luci-app-adblock-fast: bugfix: working re-download
* bugfix: add missing dl command to RPCD script * improve output of error messages/link to README Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast')
-rwxr-xr-xapplications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast3
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast b/applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast
index b85a93f2e6..be4d0a320b 100755
--- a/applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast
+++ b/applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast
@@ -10,6 +10,7 @@
# ubus -S call luci.adblock-fast getInitStatus '{"name": "adblock-fast" }'
# ubus -S call luci.adblock-fast getPlatformSupport '{"name": "adblock-fast" }'
# ubus -S call luci.adblock-fast setInitAction '{"name": "adblock-fast", "action": "start" }'
+# ubus -S call luci.adblock-fast setInitAction '{"name": "adblock-fast", "action": "dl" }'
# ubus -S call luci.adblock-fast setInitAction '{"name": "adblock-fast", "action": "stop" }'
. /lib/functions.sh
@@ -134,7 +135,7 @@ set_init_action() {
cmd="uci -q set ${name}.config.enabled=1 && uci commit $name";;
disable)
cmd="uci -q set ${name}.config.enabled=0 && uci commit $name";;
- start|stop|reload|restart)
+ start|stop|reload|restart|dl)
cmd="/etc/init.d/${name} ${action}";;
esac
if [ -n "$cmd" ] && eval "${cmd}" 1>/dev/null 2>&1; then