From 1e87d81b7422bf0e62ce50bc1549ff44c2e89fde Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sat, 2 Jun 2018 23:39:27 +0300 Subject: [PATCH] fwupdate: add option to show URLs when listing versions --- board/common/overlay/sbin/fwupdate | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/board/common/overlay/sbin/fwupdate b/board/common/overlay/sbin/fwupdate index 9514b9a93e..a0537c85b6 100755 --- a/board/common/overlay/sbin/fwupdate +++ b/board/common/overlay/sbin/fwupdate @@ -4,7 +4,7 @@ #### usage #### function exit_usage() { - echo "Usage: fwupdate versions (lists available versions)" + echo "Usage: fwupdate versions [-u] (lists available versions, optionally showing the URL)" echo " fwupdate current (shows the current version" echo " fwupdate download (downloads a firmware version)" echo " fwupdate extract (extracts the downloaded firmware archive)" @@ -394,7 +394,9 @@ function new_version() { case "$1" in versions) - show_versions + show_url="false" + test "$2" == "-u" && show_url="true" + show_versions $show_url ;; current)