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 <hias@horus.com>
This commit is contained in:
Matthias Reichl 2021-03-02 09:39:33 +01:00
parent d2a3ccbfbe
commit b2a6e313df

View File

@ -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