Rework blhost-unix.sh a bit now that jump-to-bootloader.js times out and returns a relevant return code.

This commit is contained in:
László Monda
2017-02-28 00:13:31 +01:00
parent c1f8cca455
commit 797c51ca7a

View File

@@ -1,8 +1,7 @@
#!/bin/sh #!/bin/sh
set -x # echo on set -x # echo on
jump-to-bootloader.js jump-to-bootloader.js &&
sleep 2 &&
blhost --usb 0x15a2,0x0073 flash-erase-all 0 && blhost --usb 0x15a2,0x0073 flash-erase-all 0 &&
blhost --usb 0x15a2,0x0073 flash-image $1 && blhost --usb 0x15a2,0x0073 flash-image $1 &&
blhost --usb 0x15a2,0x0073 reset blhost --usb 0x15a2,0x0073 reset