meta-digi-dey: sysinfo: include the new firmware version variable in the 'sysinfo' report
While on it, rename the old "Firmware" variable to "DEY version", as it refers explicity to the DEY distribution version. https://onedigi.atlassian.net/browse/DEL-8539 Signed-off-by: David Escalona <david.escalona@digi.com>
This commit is contained in:
parent
ce14f12ac5
commit
a3bbd8a56f
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
# sysinfo
|
||||
#
|
||||
# Copyright (C) 2016-2020 by Digi International Inc.
|
||||
# Copyright (C) 2016-2023 by Digi International Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
|
|
@ -27,6 +27,15 @@ make_report(){
|
|||
uptime
|
||||
printf "\n\n"
|
||||
|
||||
echo "--------------------------------------"
|
||||
echo "- -"
|
||||
echo "- Firmware version -"
|
||||
echo "- -"
|
||||
echo "--------------------------------------"
|
||||
echo ""
|
||||
sed -n 's/^firmware \(.*\)/\1/p' < /etc/sw-versions
|
||||
printf "\n\n"
|
||||
|
||||
echo "--------------------------------------"
|
||||
echo "- -"
|
||||
echo "- Kernel version -"
|
||||
|
|
@ -343,7 +352,8 @@ REPORT_PATH="/tmp/sysinfo-${DEY_VERSION}-${BOARD_SN}-${DATE}"
|
|||
fi
|
||||
echo "|| DUT | ${DUT_HEADER}"
|
||||
echo "|| U-Boot | ${UBOOT_VERSION}"
|
||||
echo "|| Firmware | ${DISTRO}-${DEY_VERSION}-$(cat /etc/version)"
|
||||
echo "|| Firmware version | $(sed -n 's/^firmware \(.*\)/\1/p' < /etc/sw-versions)"
|
||||
echo "|| DEY version | ${DISTRO}-${DEY_VERSION}-$(cat /etc/version)"
|
||||
echo "|| Kernel | $(uname -a)"
|
||||
echo "|| meta-digi | $(sed -ne '/^meta-digi-dey/s,.*= \(.*\)$,\1,g;T;p' /etc/build)"
|
||||
[ -n "${MCA_VERSION}" ] && echo "|| MCA | ${MCA_VERSION}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue