mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-20 21:13:36 +08:00
rpi-eeprom-digest: Don't require xxd/openssl unless RSA signing is requested.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
OPENSSL=${OPENSSl:-openssl}
|
OPENSSL=${OPENSSL:-openssl}
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
echo "$@" >&2
|
echo "$@" >&2
|
||||||
@@ -26,12 +26,14 @@ checkDependencies() {
|
|||||||
die "sha256sum not found. Try installing the coreutilities package."
|
die "sha256sum not found. Try installing the coreutilities package."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v openssl > /dev/null; then
|
if [ -n "${KEY}" ]; then
|
||||||
die "openssl not found. Try installing the openssl package."
|
if ! command -v ${OPENSSL} > /dev/null; then
|
||||||
fi
|
die "${OPENSSL} not found. Try installing the openssl package."
|
||||||
|
fi
|
||||||
|
|
||||||
if ! command -v xxd > /dev/null; then
|
if ! command -v xxd > /dev/null; then
|
||||||
die "xxd not found. Try installing the xxd package."
|
die "xxd not found. Try installing the xxd package."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user