summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock-fast/root/usr/libexec
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2023-12-06 10:27:01 +0000
committerStan Grishin <stangri@melmac.ca>2023-12-06 10:27:30 +0000
commit4c3cdcb68e8fec3969d2dec73714e1f11c1c749c (patch)
tree66b7c18ac7bf0816de1fc9161c3ad126276dfc4d /applications/luci-app-adblock-fast/root/usr/libexec
parent576fd044b95f13b162da7f4ed2855f78c6efce4b (diff)
luci-app-adblock-fast: sync with principal package
* add support for smartdns ipset/nftset-based blocking Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'applications/luci-app-adblock-fast/root/usr/libexec')
-rwxr-xr-xapplications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast28
1 files changed, 19 insertions, 9 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 699b286d84..9ca94c7878 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
@@ -251,25 +251,35 @@ get_platform_support() {
else
json_add_boolean 'dnsmasq_installed' '0'
fi
+ if check_dnsmasq_ipset; then
+ json_add_boolean 'dnsmasq_ipset_support' '1'
+ else
+ json_add_boolean 'dnsmasq_ipset_support' '0'
+ fi
+ if check_dnsmasq_nftset; then
+ json_add_boolean 'dnsmasq_nftset_support' '1'
+ else
+ json_add_boolean 'dnsmasq_nftset_support' '0'
+ fi
if check_smartdns; then
json_add_boolean 'smartdns_installed' '1'
else
json_add_boolean 'smartdns_installed' '0'
fi
- if check_unbound; then
- json_add_boolean 'unbound_installed' '1'
+ if check_smartdns_ipset; then
+ json_add_boolean 'smartdns_ipset_support' '1'
else
- json_add_boolean 'unbound_installed' '0'
+ json_add_boolean 'smartdns_ipset_support' '0'
fi
- if check_dnsmasq_ipset; then
- json_add_boolean 'dnsmasq_ipset_support' '1'
+ if check_smartdns_nftset; then
+ json_add_boolean 'smartdns_nftset_support' '1'
else
- json_add_boolean 'dnsmasq_ipset_support' '0'
+ json_add_boolean 'smartdns_nftset_support' '0'
fi
- if check_dnsmasq_nftset; then
- json_add_boolean 'dnsmasq_nftset_support' '1'
+ if check_unbound; then
+ json_add_boolean 'unbound_installed' '1'
else
- json_add_boolean 'dnsmasq_nftset_support' '0'
+ json_add_boolean 'unbound_installed' '0'
fi
json_add_array 'leds'
for i in /sys/class/leds/*; do json_add_string '' "$(basename "$i")"; done