From 594259a2d3b5d005349abd12904b2bf520027a81 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 28 Oct 2015 15:09:30 -0400 Subject: do_update(): Call dist_get_rom() --- 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 } -- cgit v0.9.1