updater: Fix pkg_mgr_update for opkg

This commit is contained in:
remittor
2026-01-13 14:14:57 +03:00
parent e15eaafa33
commit fc85552e4e

View File

@@ -110,7 +110,7 @@ function pkg_mgr_update
if [ "$PKG_MGR" = "opkg" ]; then if [ "$PKG_MGR" = "opkg" ]; then
PKG_TOTAL=$( opkg list | wc -l ) PKG_TOTAL=$( opkg list | wc -l )
PKG_INSTALLED=$( opkg list-installed | 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..." echo ">>> OPKG update..."
opkg update opkg update
return $? return $?