summaryrefslogtreecommitdiffstats
path: root/src/action
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-28 15:09:30 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-28 15:09:30 (EDT)
commit594259a2d3b5d005349abd12904b2bf520027a81 (patch)
tree9aa2eecce8ee8decd109ede7d56478e6e54f60dd /src/action
parent6f7f552f9edfde7b13cdb54ec4c9c8d9786750d1 (diff)
downloadfirman.sh-594259a2d3b5d005349abd12904b2bf520027a81.zip
firman.sh-594259a2d3b5d005349abd12904b2bf520027a81.tar.gz
firman.sh-594259a2d3b5d005349abd12904b2bf520027a81.tar.bz2
do_update(): Call dist_get_rom()
Diffstat (limited to 'src/action')
-rw-r--r--src/action/update.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/action/update.sh b/src/action/update.sh
index cc3293f..8282002 100644
--- a/src/action/update.sh
+++ b/src/action/update.sh
@@ -90,6 +90,7 @@ do_update()
{
local mirror=''
local version=''
+ local rom=''
info 'Updating firmware'
@@ -98,9 +99,16 @@ do_update()
return 1
fi
+ # Select firmware distributor, mirror, and version.
get_dist
mirror="$(get_mirror)"
version="$(get_version "${mirror}")"
+ # Get, prepare, and flash ROM.
+ dist_get_rom "${mirror}" "${version}" "$(board_get_id)"
+ #board_prepare_rom "${rom}"
+ #flashrom_write "${rom}" "$(board_get_chip)"
+ rm_temp 'rom'
+
return 0
}