Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Lehoussel <fabien.lehoussel@medianesysteme.com>2020-10-19 16:09:43 +0300
committerFabien Lehoussel <fabien.lehoussel@medianesysteme.com>2020-10-19 16:09:43 +0300
commitae7be7599ed6d5e98a68fb537e0d8f61375fbedb (patch)
tree9bf1bbec6e2ec495a7b82dfcf4f24b760012a945 /include/tests_crypto
parent537624da15d2127007c5d21423d5265e92902aa8 (diff)
Fix head cmd with busybox
Diffstat (limited to 'include/tests_crypto')
-rw-r--r--include/tests_crypto2
1 files changed, 1 insertions, 1 deletions
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