From 4c6b04ff6933b49667b5ace8be4e19ad966cc823 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 15 Sep 2023 13:49:15 +0200 Subject: [PATCH] Fixed invalid path for firmware hash generation while using extracted firmware to autoinstall --- RNS/Utilities/rnodeconf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RNS/Utilities/rnodeconf.py b/RNS/Utilities/rnodeconf.py index 589d3c4..fa7be7d 100755 --- a/RNS/Utilities/rnodeconf.py +++ b/RNS/Utilities/rnodeconf.py @@ -2612,7 +2612,11 @@ def main(): vf.close() else: partition_filename = fw_filename.replace(".zip", ".bin") - partition_hash = get_partition_hash(UPD_DIR+"/"+selected_version+"/"+partition_filename) + if fw_filename == "extracted_rnode_firmware.zip": + partition_full_path = EXT_DIR+"/extracted_rnode_firmware.bin" + else: + partition_full_path = UPD_DIR+"/"+selected_version+"/"+partition_filename + partition_hash = get_partition_hash(partition_full_path) if partition_hash != None: rnode.set_firmware_hash(partition_hash) rnode.indicate_firmware_update()