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>2014-10-19 14:43:15 +0400
committermboelen <michael@cisofy.com>2014-10-19 14:43:15 +0400
commit067360db1b3d76fef5a017d8e75133579329824d (patch)
tree0f6beba0eb5b1f11f30288b41c55520634c1b76d
parent8bf76a9a0fffa7d2af5cd7b0402586ac09dc616e (diff)
Improved qdaemon printer detection
-rw-r--r--include/tests_printers_spools4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_printers_spools b/include/tests_printers_spools
index 2e44aa57..6aaf0a2a 100644
--- a/include/tests_printers_spools
+++ b/include/tests_printers_spools
@@ -218,8 +218,8 @@
QDAEMON_CONFIG_FILE="/etc/qconfig"
FileIsReadable ${QDAEMON_CONFIG_FILE}
if [ ${CANREAD} -eq 1 ]; then
- FileEmpty ${QDAEMON_CONFIG_FILE}
- if [ ${FILE_FOUND} -eq 0 ]; then
+ FIND=`grep -cv "^\*" ${QDAEMON_CONFIG_FILE} | egrep "backend|device"`
+ if [ ! "${FIND}" = "" ]; then
logtext "Result: printers are defined in ${QDAEMON_CONFIG_FILE}"
Display --indent 2 --text "- Checking /etc/qconfig file" --result FOUND --color GREEN
QDAEMON_CONFIG_ENABLED=1