mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-29 16:54:26 +02:00
Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. SC2166
This commit is contained in:
parent
a052a107d3
commit
f77e56ed4b
@ -40,7 +40,7 @@
|
|||||||
if [ -n "${FIND}" ]; then
|
if [ -n "${FIND}" ]; then
|
||||||
FIND1=$(${EGREPBINARY} "blacklist (ohci1394|firewire[-_]ohci|firewire-core)" ${ROOTDIR}etc/modprobe.d/* | ${GREPBINARY} -v "#")
|
FIND1=$(${EGREPBINARY} "blacklist (ohci1394|firewire[-_]ohci|firewire-core)" ${ROOTDIR}etc/modprobe.d/* | ${GREPBINARY} -v "#")
|
||||||
FIND2=$(${EGREPBINARY} "install (ohci1394|firewire[-_]ohci|firewire-core) /bin/(false|true)" ${ROOTDIR}etc/modprobe.d/* | ${GREPBINARY} -v "#")
|
FIND2=$(${EGREPBINARY} "install (ohci1394|firewire[-_]ohci|firewire-core) /bin/(false|true)" ${ROOTDIR}etc/modprobe.d/* | ${GREPBINARY} -v "#")
|
||||||
if [ -n "${FIND1}" -o -n "${FIND2}" ]; then
|
if [ -n "${FIND1}" ] || [ -n "${FIND2}" ]; then
|
||||||
FOUND=1
|
FOUND=1
|
||||||
LogText "Result: found firewire ohci driver in disabled state"
|
LogText "Result: found firewire ohci driver in disabled state"
|
||||||
fi
|
fi
|
||||||
@ -51,7 +51,7 @@
|
|||||||
if [ -f "${ROOTDIR}etc/modprobe.conf" ]; then
|
if [ -f "${ROOTDIR}etc/modprobe.conf" ]; then
|
||||||
FIND1=$(${EGREPBINARY} -r "blacklist (ohci1394|firewire[-_]ohci|firewire-core)" "${ROOTDIR}etc/modprobe.conf" | ${GREPBINARY} -v "#")
|
FIND1=$(${EGREPBINARY} -r "blacklist (ohci1394|firewire[-_]ohci|firewire-core)" "${ROOTDIR}etc/modprobe.conf" | ${GREPBINARY} -v "#")
|
||||||
FIND2=$(${EGREPBINARY} -r "install (ohci1394|firewire[-_]ohci|firewire-core) /bin/(false|true)" "${ROOTDIR}etc/modprobe.conf" | ${GREPBINARY} -v "#")
|
FIND2=$(${EGREPBINARY} -r "install (ohci1394|firewire[-_]ohci|firewire-core) /bin/(false|true)" "${ROOTDIR}etc/modprobe.conf" | ${GREPBINARY} -v "#")
|
||||||
if [ -n "${FIND1}" -o -n "${FIND2}" ]; then
|
if [ -n "${FIND1}" ] || [ -n "${FIND2}" ]; then
|
||||||
FOUND=1
|
FOUND=1
|
||||||
LogText "Result: found firewire ohci driver in disabled state"
|
LogText "Result: found firewire ohci driver in disabled state"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user