From 43a1502de8f8b510728b40ac53b1314c1b1fc22d Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 8 Jan 2024 16:21:09 +0800 Subject: [PATCH] allow v2 signatures in restoration of backups --- tools/restore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/restore.py b/tools/restore.py index f60e1de1d..66686e267 100644 --- a/tools/restore.py +++ b/tools/restore.py @@ -675,7 +675,7 @@ def main(): # first try the stable branch and see if it meets the version requirement print("Downloading candidate restore kernel...") candidate_kernel = requests.get(URL_LIST[attempt] + 'xous-' + language + '.img').content - if int.from_bytes(candidate_kernel[:4], 'little') != 1: + if int.from_bytes(candidate_kernel[:4], 'little') != 1 and int.from_bytes(candidate_kernel[:4], 'little') != 2: print("Downloaded kernel image has unexpected signature version. Trying the next image.") attempt += 1 continue