diff options
Diffstat (limited to 'src/action')
-rw-r--r-- | src/action/update.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/action/update.sh b/src/action/update.sh index 7cbfcf3..cf437b6 100644 --- a/src/action/update.sh +++ b/src/action/update.sh @@ -23,6 +23,8 @@ do_update() local mirror_url='' local mirror_label='' local mirror_urls='' + local versions='' + local version='' info 'Updating firmware' @@ -63,5 +65,12 @@ do_update() mirror_url="$(printf '%s ' ${mirror_urls} | cut -d ' ' -f ${i})" info 'Mirror: %s' "${mirror_url}" + # Select version. + versions="$(dist_get_versions "${mirror_url}" "$(board_get)")" + i=$(show_menu 'Select a version' ${versions}) + i=$(($i + 1)) + version="$(printf '%s ' ${versions} | cut -d ' ' -f ${i})" + info 'Version: %s' "${version}" + return 0 } |