Skip to content

Commit

Permalink
allow v2 signatures in restoration of backups
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Jan 8, 2024
1 parent 3a108bb commit 43a1502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43a1502

Please sign in to comment.