mirror of https://github.com/CISOfy/lynis.git
Make IPv6 check compatible for all systems
This commit is contained in:
parent
f6c84785e7
commit
13cfbd3019
|
@ -41,7 +41,7 @@
|
|||
IPV6_ONLY=255
|
||||
IPV6_MISCONFIGURED=0
|
||||
IPV6_MISCONFIGURED_MTU=0
|
||||
FIND=`sysctl -a --pattern "^net.ipv6" 2> /dev/null | sed "s/ = /=/"`
|
||||
FIND=`sysctl -a | grep "^net.ipv6" 2> /dev/null | sed "s/ = /=/"`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
IPV6_CONFIGURED=1
|
||||
for I in ${FIND}; do
|
||||
|
|
Loading…
Reference in New Issue