From ef0cfffced1bbee8ae6755ddf58e478c3d8c8f05 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 18 Dec 2023 18:05:46 +0200 Subject: [PATCH] Check that `strings` exists, suggest installing `binutils` --- rpi-eeprom-update | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpi-eeprom-update b/rpi-eeprom-update index 264b8e7..72bd709 100755 --- a/rpi-eeprom-update +++ b/rpi-eeprom-update @@ -450,6 +450,10 @@ checkDependencies() { die "lspci not found. Try installing the pciutils package." fi + if ! command -v strings > /dev/null; then + die "strings not found. Try installing the binutils package." + fi + # vcgencmd bootloader_version is deprecated. Use device-tree if available to # reduce the number of dependencies on VCHI. if ! [ -f "${DT_BOOTLOADER_TS}" ]; then