diff options
author | Paul Selkirk <paul@psgd.org> | 2016-07-12 14:53:24 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-07-12 14:53:24 -0400 |
commit | d05ae0e167690172533a4fdea603080cb4582f86 (patch) | |
tree | 202fb33a298450fd50279b5f34fe24ef7f73d9f1 | |
parent | e60817fe6e800c249c6032137c4baf4af72cb578 (diff) |
Allow wheel to upload firmware/bitstreams
-rwxr-xr-x | projects/hsm/cryptech_upload | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/projects/hsm/cryptech_upload b/projects/hsm/cryptech_upload index 6d6d4f7..64b9440 100755 --- a/projects/hsm/cryptech_upload +++ b/projects/hsm/cryptech_upload @@ -128,11 +128,15 @@ def _execute(dst, cmd): _write(dst, "\r") prompt = _read(dst) if prompt.endswith("Username: "): - _write(dst, "so\r") + if sys.version_info[0] > 2: + user = input("Username (so, wheel): ") + else: + user = raw_input("Username (so, wheel): ") + _write(dst, user + "\r") prompt = _read(dst) if prompt.endswith("Password: "): if not pin: - pin = getpass.getpass("SO PIN: ") + pin = getpass.getpass("PIN: ") _write(dst, pin + "\r") prompt = _read(dst) if not prompt.endswith(("> ", "# ")): |