summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/action/update.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/action/update.sh b/src/action/update.sh
index 31e218b..e119c50 100644
--- a/src/action/update.sh
+++ b/src/action/update.sh
@@ -104,10 +104,18 @@ do_update()
mirror="$(get_mirror)"
version="$(get_version "${mirror}")"
- # Get, prepare, and flash ROM.
+ # Get and prepare a ROM.
dist_get_rom "${mirror}" "${version}" "$(board_get_id)"
board_prepare_rom
- flashrom_write "$(board_get_chip)"
+
+ # Write the ROM to flash.
+ info 'Installing new firmware...'
+ if flashrom_write "$(board_get_chip)"; then
+ info 'Firmware installation complete'
+ sleep 5
+ fi
+
+ # Clean up the ROM.
rm_temp 'rom'
return 0