summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock-fast/root/usr/libexec
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2024-05-13 16:03:37 -0700
committerGitHub <noreply@github.com>2024-05-13 16:03:37 -0700
commitede57a8a186533201bfad1936ca0001e9fc10acb (patch)
tree9c0e3a59b710395a3ea80b828189420656034b49 /applications/luci-app-adblock-fast/root/usr/libexec
parentb57c6ff29eb625913b91e0f6ebb754a5454acb9f (diff)
parentd18f58b4317f2207cb4964f29fdb25a08ea99646 (diff)
Merge pull request #7121 from stangri/master-luci-app-adblock-fast
luci-app-adblock-fast: update to 1.1.2-1
Diffstat (limited to 'applications/luci-app-adblock-fast/root/usr/libexec')
-rwxr-xr-xapplications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast10
1 files changed, 10 insertions, 0 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 8859c11d71..2f84904c01 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
@@ -14,6 +14,7 @@
# ubus -S call luci.adblock-fast setInitAction '{"name": "adblock-fast", "action": "pause" }'
# ubus -S call luci.adblock-fast setInitAction '{"name": "adblock-fast", "action": "stop" }'
+readonly luciCompat='1'
readonly adbFunctionsFile='/etc/init.d/adblock-fast'
if [ -s "$adbFunctionsFile" ]; then
# shellcheck source=../../../../../adblock-fast/files/etc/init.d/adblock-fast
@@ -156,6 +157,15 @@ get_init_status() {
json_close_object
done
fi
+ if is_greater "${packageCompat:-0}" "${luciCompat:-0}"; then
+ json_add_object
+ json_add_string 'id' 'warningOutdatedLuciPackage'
+ json_close_object
+ elif is_greater "${luciCompat:-0}" "${packageCompat:-0}"; then
+ json_add_object
+ json_add_string 'id' 'warningOutdatedPrincipalPackage'
+ json_close_object
+ fi
json_close_array
ports="$(ubus_get_ports)"