diff options
author | Stan Grishin <stangri@melmac.ca> | 2023-12-11 15:46:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 15:46:08 -0700 |
commit | f8bd034075f375a134d9b0507da03ddfa2be5e0a (patch) | |
tree | 3a53e748ee608df678c596f21ace66d62e6ae13c /applications/luci-app-https-dns-proxy/root/usr/libexec | |
parent | 6dff72b1cd20bd878e24f9b2fc05b4ecc858d607 (diff) | |
parent | 799280877fbe7a43dab9c3af1dd509519e2f542b (diff) |
Merge pull request #6761 from stangri/master-luci-app-https-dns-proxy
luci-app-https-dns-proxy: update to 2023-10-25-5
Diffstat (limited to 'applications/luci-app-https-dns-proxy/root/usr/libexec')
-rwxr-xr-x | applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy b/applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy index 7c59f90c38..593af173fc 100755 --- a/applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy +++ b/applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy @@ -117,14 +117,11 @@ get_runtime() { ubus call service list "{ 'verbose': true, 'name': '$1' }"; } set_init_action() { local name="$1" action="$2" cmd case $action in - enable) - cmd="/etc/init.d/${name} enable";; - disable) - cmd="/etc/init.d/${name} disable";; - start|stop|restart) - cmd="/etc/init.d/${name} ${action}";; + enable|disable|start|stop|restart) + cmd="/etc/init.d/${name} ${action}" + ;; esac - if [ -n "$cmd" ] && eval "${cmd}" >/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' |