summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}