summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-https-dns-proxy/root/usr/libexec
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2023-12-11 13:06:12 +0000
committerStan Grishin <stangri@melmac.ca>2023-12-11 13:06:20 +0000
commit799280877fbe7a43dab9c3af1dd509519e2f542b (patch)
treeced230dd0841e11603776888dea968aecb8195db /applications/luci-app-https-dns-proxy/root/usr/libexec
parent61ff84a99e97ba449a50a7cfc496c03919ab836e (diff)
luci-app-https-dns-proxy: update to 2023-10-25-5
* no longer "require uci" in js files * use L.resolveDefault when loading configs * improve DNSMASQ config update selection user experience * switch from uci.get to L.uci.get * small code improvement of RPCD script Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'applications/luci-app-https-dns-proxy/root/usr/libexec')
-rwxr-xr-xapplications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy11
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'