diff options
author | Stan Grishin <stangri@melmac.ca> | 2024-05-13 04:36:07 +0000 |
---|---|---|
committer | Stan Grishin <stangri@melmac.ca> | 2024-05-13 04:37:07 +0000 |
commit | d18f58b4317f2207cb4964f29fdb25a08ea99646 (patch) | |
tree | 757d1a681456948ee550414e57b1e498aca75514 /applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast | |
parent | b4d34010feac5516aff301a21d03b82264d2ec60 (diff) |
luci-app-adblock-fast: update to 1.1.2-1
* update license
* update PKG_VERSION/PKG_RELEASE
* improve visibility in menuconfig
* add warning for compatiblity check fails with principal package
* report compatiblity check fails with principal package from RPCD script
Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast')
-rwxr-xr-x | applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast | 10 |
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)" |