1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 11:09:01 +00:00

add possibility to skip check in firmware_update

This commit is contained in:
Pavol Rusnak 2016-09-26 12:28:06 +02:00
parent 80ffa27052
commit 05c243d29b
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -309,11 +309,11 @@ class Commands(object):
args.url = 'https://wallet.trezor.io/' + release['url']
return self.firmware_update(args)
if fp[:8] == b'54525a52':
fp = binascii.unhexlify(fp)
if fp[:4] != b'TRZR':
raise Exception("TREZOR firmware header expected")
if not args.skip_check:
if fp[:8] == b'54525a52':
fp = binascii.unhexlify(fp)
if fp[:4] != b'TRZR':
raise Exception("TREZOR firmware header expected")
print("Please confirm action on device...")
@ -469,6 +469,7 @@ class Commands(object):
(('-f', '--file'), {'type': str}),
(('-u', '--url'), {'type': str}),
(('-n', '--version'), {'type': str}),
(('-s', '--skip-check'), {'action': 'store_true', 'default': False}),
)
def list_usb():