From f2e5be82781f6b76a27a1ca9e0b3c1768c6e9d44 Mon Sep 17 00:00:00 2001 From: tGecko Date: Wed, 25 Sep 2024 07:09:38 +0200 Subject: [PATCH] fix check for newer fimrware versions --- static/build/.tmp_update/runtime.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/build/.tmp_update/runtime.sh b/static/build/.tmp_update/runtime.sh index 4e2194f1b..1ea129576 100644 --- a/static/build/.tmp_update/runtime.sh +++ b/static/build/.tmp_update/runtime.sh @@ -628,7 +628,7 @@ get_screen_resolution() { touch /tmp/get_screen_resolution_failed fi - if [ "$screen_resolution" = "752x560" ] && [ "$(/etc/fw_printenv miyoo_version)" = "miyoo_version=202310271401" ]; then + if [ "$screen_resolution" = "752x560" ] && [ "$(/etc/fw_printenv miyoo_version | cut -d'=' -f2)" -ge "202310271401" ]; then touch /tmp/new_res_available else # can't use 752x560 without appropriate firmware or screen