fix auto install

This commit is contained in:
Alexander 2024-02-23 20:10:24 +01:00
parent e1f43041cd
commit c4d5e6af5c

View file

@ -85,7 +85,7 @@ if __name__ == "__main__":
# If current_boot_partition is bootA, run swupdate with bootB. example: now_A_next_B
boot_partition = "now_A_next_B" if current_boot_partition == "bootA" else "now_B_next_A"
ssh.exec_command(f'swupdate_cmd.sh -i /mnt/UDISK/update.swu -e stable,{boot_partition} -k /etc/swupdate_public.pem &')
ssh.exec_command(f'swupdate_cmd.sh -i /mnt/UDISK/update.swu -e stable,{boot_partition} -k /etc/swupdate_public.pem')
print("Update started... Please wait for the printer to reboot")
# wait for the update to complete, the printer to reboot and then close the connection
# Count down from 60 seconds