From d18f58b4317f2207cb4964f29fdb25a08ea99646 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Mon, 13 May 2024 04:36:07 +0000 Subject: 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 --- .../root/usr/libexec/rpcd/luci.adblock-fast | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'applications/luci-app-adblock-fast/root/usr/libexec/rpcd/luci.adblock-fast') 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)" -- cgit v1.2.3