diff options
Diffstat (limited to 'applications/luci-app-https-dns-proxy/root/usr')
-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' |