From ae7be7599ed6d5e98a68fb537e0d8f61375fbedb Mon Sep 17 00:00:00 2001 From: Fabien Lehoussel Date: Mon, 19 Oct 2020 15:09:43 +0200 Subject: [PATCH] Fix head cmd with busybox --- include/tests_crypto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_crypto b/include/tests_crypto index d4a90cc2..61074cdc 100644 --- a/include/tests_crypto +++ b/include/tests_crypto @@ -245,7 +245,7 @@ if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: looking for ${ROOTDIR}sys/class/misc/hw_random/rng_current" if [ -f "${ROOTDIR}sys/class/misc/hw_random/rng_current" ]; then - DATA=$(${HEADBINARY} --lines=1 ${ROOTDIR}sys/class/misc/hw_random/rng_current | ${TRBINARY} -d '[[:cntrl:]]') + DATA=$(${HEADBINARY} -n 1 ${ROOTDIR}sys/class/misc/hw_random/rng_current | ${TRBINARY} -d '[[:cntrl:]]') if [ "${DATA}" != "none" ]; then LogText "Result: positive match, found RNG: ${DATA}" if IsRunning "rngd"; then