summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock-fast/root/usr/libexec/rpcd
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2023-10-25 21:46:57 +0000
committerStan Grishin <stangri@melmac.ca>2023-10-25 21:51:38 +0000
commita0574a3ad1c7831705d979ad09b8dcc94bbd4184 (patch)
tree9947c6941173eb3cfe3d7a356d9e3d7dc5c8a8b7 /applications/luci-app-adblock-fast/root/usr/libexec/rpcd
parent25dd8934f18a6cebfca1adb8a0d4b5d0bed73145 (diff)
luci-app-adblock-fast: bugfix: localizable entries in overview
* bugfix: localizable entries in overview * update grammar/naming for buttons * prepare for pause button * add status include file to show service status Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'applications/luci-app-adblock-fast/root/usr/libexec/rpcd')
-rwxr-xr-xapplications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast5
1 files changed, 3 insertions, 2 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 be4d0a320b..6f282678b1 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
@@ -11,6 +11,7 @@
# 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": "pause" }'
# ubus -S call luci.adblock-fast setInitAction '{"name": "adblock-fast", "action": "stop" }'
. /lib/functions.sh
@@ -135,10 +136,10 @@ 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|dl)
+ start|stop|reload|restart|dl|pause)
cmd="/etc/init.d/${name} ${action}";;
esac
- if [ -n "$cmd" ] && eval "${cmd}" 1>/dev/null 2>&1; then
+ if [ -n "$cmd" ] && eval "${cmd}" >/dev/null 2>&1; then
print_json_bool "result" '1'
else
print_json_bool "result" '0'