mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
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:
parent
d2a3ccbfbe
commit
b2a6e313df
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user