From b2a6e313dfd5b90a59b0f2a8f49a957cb0ad3e49 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Tue, 2 Mar 2021 09:39:33 +0100 Subject: [PATCH] pastekodi: cleanup RPi bootloader version report The check for "unsupported command" was wrong as vcgencmd outputs that on stderr (which isn't captured), not stdout. Current RPii0-3 firmwares support the command and report "unknown", so the whole check can be dropped and we can simply add the output of the vcgencmd command. Signed-off-by: Matthias Reichl --- packages/mediacenter/kodi/scripts/pastekodi | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/mediacenter/kodi/scripts/pastekodi b/packages/mediacenter/kodi/scripts/pastekodi index f26700e097..99d98b5d49 100755 --- a/packages/mediacenter/kodi/scripts/pastekodi +++ b/packages/mediacenter/kodi/scripts/pastekodi @@ -85,10 +85,7 @@ fi journalctl -a -o short-precise | cat_data "journalctl -a" if [ "${LIBREELEC_PROJECT}" = "RPi" ]; then - bootloader_version="$(vcgencmd bootloader_version)" - if ! echo "${bootloader_version}" | grep -q "Command not registered"; then - echo "${bootloader_version}" | cat_data "Bootloader version" - fi + vcgencmd bootloader_version | cat_data "Bootloader version" fi cat_file "/flash/config.txt" # RPi