Commit e071bbf9c764170d1267120b7418909491ea45eb

Authored by Tim Gover
1 parent a6976b71

rpi-eeprom-digest: Only require openssl + xxd for RSA operations

Showing 1 changed file with 9 additions and 7 deletions
tools/rpi-eeprom-digest
... ... @@ -26,13 +26,15 @@ checkDependencies() {
26 26 die "sha256sum not found. Try installing the coreutilities package."
27 27 fi
28 28  
29   - if ! command -v openssl > /dev/null; then
30   - die "openssl not found. Try installing the openssl package."
31   - fi
32   -
33   - if ! command -v xxd > /dev/null; then
34   - die "xxd not found. Try installing the xxd package."
35   - fi
  29 + if [ -n "${KEY}" ] || [ "${VERIFY}" = 1 ]; then
  30 + if ! command -v openssl > /dev/null; then
  31 + die "openssl not found. Try installing the openssl package."
  32 + fi
  33 +
  34 + if ! command -v xxd > /dev/null; then
  35 + die "xxd not found. Try installing the xxd package."
  36 + fi
  37 + fi
36 38 }
37 39  
38 40 usage() {
... ...