mirror of https://github.com/CISOfy/lynis.git
Improved qdaemon printer detection
This commit is contained in:
parent
8bf76a9a0f
commit
067360db1b
|
@ -218,8 +218,8 @@
|
||||||
QDAEMON_CONFIG_FILE="/etc/qconfig"
|
QDAEMON_CONFIG_FILE="/etc/qconfig"
|
||||||
FileIsReadable ${QDAEMON_CONFIG_FILE}
|
FileIsReadable ${QDAEMON_CONFIG_FILE}
|
||||||
if [ ${CANREAD} -eq 1 ]; then
|
if [ ${CANREAD} -eq 1 ]; then
|
||||||
FileEmpty ${QDAEMON_CONFIG_FILE}
|
FIND=`grep -cv "^\*" ${QDAEMON_CONFIG_FILE} | egrep "backend|device"`
|
||||||
if [ ${FILE_FOUND} -eq 0 ]; then
|
if [ ! "${FIND}" = "" ]; then
|
||||||
logtext "Result: printers are defined in ${QDAEMON_CONFIG_FILE}"
|
logtext "Result: printers are defined in ${QDAEMON_CONFIG_FILE}"
|
||||||
Display --indent 2 --text "- Checking /etc/qconfig file" --result FOUND --color GREEN
|
Display --indent 2 --text "- Checking /etc/qconfig file" --result FOUND --color GREEN
|
||||||
QDAEMON_CONFIG_ENABLED=1
|
QDAEMON_CONFIG_ENABLED=1
|
||||||
|
|
Loading…
Reference in New Issue