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:
authormboelen <michael@cisofy.com>2015-01-30 21:57:18 +0300
committermboelen <michael@cisofy.com>2015-01-30 21:57:18 +0300
commitb41d12d077acf8c3fb29b2f8327fde88d3980f45 (patch)
treefc4b8c35febf1b47186b95eb483b1663577e36db
parent2e0c90079b41cdfc309273bdee045e7894289df4 (diff)
Decrease screen output when scanning for binaries
-rw-r--r--include/binaries18
1 files changed, 8 insertions, 10 deletions
diff --git a/include/binaries b/include/binaries
index 40fd62cb..7943736b 100644
--- a/include/binaries
+++ b/include/binaries
@@ -24,10 +24,12 @@
#
#################################################################################
#
+ if [ ${CHECK_BINARIES} -eq 1 ]; then
InsertSection "System Tools"
-#
-#################################################################################
-#
+ #
+ #################################################################################
+ #
+
Display --indent 2 --text "- Scanning available tools..."
logtext "Start scanning for available audit binaries and tools..."
@@ -69,7 +71,6 @@
if [ ${SKIPDIR} -eq 0 ]; then
logtext "Test: Checking binaries in directory ${SCANDIR}"
- Display --indent 4 --text "- ${SCANDIR}" --result FOUND --color GREEN
BINARY_PATHS_FOUND="${BINARY_PATHS_FOUND}, ${SCANDIR}"
logtext "Directory ${SCANDIR} exists. Starting directory scanning..."
FIND=`ls ${SCANDIR}`
@@ -191,10 +192,8 @@
else
logtext "Result: Directory ${SCANDIR} skipped"
if [ ! "${ORGPATH}" = "" ]; then TEXT="${ORGPATH} (links to ${SCANDIR})"; else TEXT="${SCANDIR}"; fi
- Display --indent 4 --text "- ${TEXT}" --result SKIPPED --color YELLOW
fi
else
- Display --indent 4 --text "- ${SCANDIR}" --result "NOT FOUND" --color WHITE
logtext "Result: Directory ${SCANDIR} does NOT exist"
fi
logtextbreak
@@ -207,11 +206,10 @@
logtext "Result: found ${N} binaries"
report "binaries_count=${N}"
-#
-#################################################################################
-#
-wait_for_keypress
+ else
+ logtext "Result: checking binaries skipped in this mode"
+ fi
#
#================================================================================