summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-30 11:18:12 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-30 11:18:12 (EDT)
commit5e13896e20495b83564fa32cdb0436e6023abd0a (patch)
treea62c99bb10d53d91d0e97d3755c397fd10724682
parent1396d20c3be5ce9543f8dda12421f5fa5c7e8107 (diff)
downloadfirman.sh-5e13896e20495b83564fa32cdb0436e6023abd0a.zip
firman.sh-5e13896e20495b83564fa32cdb0436e6023abd0a.tar.gz
firman.sh-5e13896e20495b83564fa32cdb0436e6023abd0a.tar.bz2
do_update(): Add info() calls
-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