diff options
author | Stan Grishin <stangri@melmac.ca> | 2022-11-14 19:26:17 +0000 |
---|---|---|
committer | Stan Grishin <stangri@melmac.ca> | 2022-11-14 19:26:17 +0000 |
commit | ec31047e357afc19806b7f3d5781389769fada81 (patch) | |
tree | 95ac4e9e5f251276e020fc44c9e117048f90aa41 /applications/luci-app-simple-adblock/root/usr/libexec/rpcd/luci.simple-adblock | |
parent | 20b765c77b479d1265fd7770b285addceabae32e (diff) |
luci-app-simple-adblock: update to 1.9.3-1
Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'applications/luci-app-simple-adblock/root/usr/libexec/rpcd/luci.simple-adblock')
-rwxr-xr-x | applications/luci-app-simple-adblock/root/usr/libexec/rpcd/luci.simple-adblock | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/applications/luci-app-simple-adblock/root/usr/libexec/rpcd/luci.simple-adblock b/applications/luci-app-simple-adblock/root/usr/libexec/rpcd/luci.simple-adblock index 80938a3b0b..6ba5790fc7 100755 --- a/applications/luci-app-simple-adblock/root/usr/libexec/rpcd/luci.simple-adblock +++ b/applications/luci-app-simple-adblock/root/usr/libexec/rpcd/luci.simple-adblock @@ -109,11 +109,16 @@ get_init_status() { local name name="$(basename "$1")" name="${name:-$packageName}" - local errors ports dns outputFile outputCache outputGzip + local errors warnings ports dns outputFile outputCache outputGzip local i errors="$(ubus_get_status errors)" + warnings="$(ubus_get_status warnings)" ports="$(ubus_get_ports)" - dns="$(uci -q get $packageName.config.dns)" + if [ -n "$(uci -q get $packageName.config.dnsmasq_config_file_url)" ]; then + dns="dnsmasq.conf" + else + dns="$(uci -q get $packageName.config.dns)" + fi case "$dns" in dnsmasq.addnhosts) outputFile="$dnsmasqAddnhostsFile" @@ -160,6 +165,7 @@ get_init_status() { json_add_array 'errors' for i in $errors; do json_add_string '' "$i"; done json_close_array +# json_add_string 'warnings' "$warnings" if [ -n "$ports" ]; then json_add_boolean 'force_dns_active' '1' json_add_array 'force_dns_ports' |