From fc85552e4eef55d313b70fd45695136eeb22e1d0 Mon Sep 17 00:00:00 2001 From: remittor Date: Tue, 13 Jan 2026 14:14:57 +0300 Subject: [PATCH] updater: Fix pkg_mgr_update for opkg --- zapret2/update-pkg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zapret2/update-pkg.sh b/zapret2/update-pkg.sh index ed8bb6b..5eb1ae6 100755 --- a/zapret2/update-pkg.sh +++ b/zapret2/update-pkg.sh @@ -110,7 +110,7 @@ function pkg_mgr_update if [ "$PKG_MGR" = "opkg" ]; then PKG_TOTAL=$( opkg list | wc -l ) PKG_INSTALLED=$( opkg list-installed | wc -l ) - if [ "$PKG_TOTAL" = "$PKG_INSTALLED" ]; then + if [ "$PKG_TOTAL" -le "$PKG_INSTALLED" ] || [[ "$PKG_TOTAL" -le $((PKG_INSTALLED + 100)) ]]; then echo ">>> OPKG update..." opkg update return $?