mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 15:54:09 +02:00
Move stderr redirection to sysctl command instead of grep, to prevent errors displaying on screen
This commit is contained in:
parent
e949e560d7
commit
c3d5dabb49
@ -45,7 +45,7 @@
|
|||||||
IPV6_ONLY=255
|
IPV6_ONLY=255
|
||||||
IPV6_MISCONFIGURED=0
|
IPV6_MISCONFIGURED=0
|
||||||
IPV6_MISCONFIGURED_MTU=0
|
IPV6_MISCONFIGURED_MTU=0
|
||||||
FIND=`sysctl -a | grep "^net.ipv6" 2> /dev/null | sed "s/ = /=/"`
|
FIND=`sysctl -a 2> /dev/null | grep "^net.ipv6" | sed "s/ = /=/"`
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ! "${FIND}" = "" ]; then
|
||||||
IPV6_CONFIGURED=1
|
IPV6_CONFIGURED=1
|
||||||
for I in ${FIND}; do
|
for I in ${FIND}; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user