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>2016-03-17 23:02:28 +0300
committermboelen <michael@cisofy.com>2016-03-17 23:02:28 +0300
commitc3d5dabb490a1f22eccc74ea3db52e4b77fd4c03 (patch)
tree9620287afd0c79f926a82615d100cbee1c10302f
parente949e560d7b8709efd8fb591cee1a081ea0d9e06 (diff)
Move stderr redirection to sysctl command instead of grep, to prevent errors displaying on screen
-rw-r--r--include/tests_networking2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_networking b/include/tests_networking
index ce98ae96..5c55a6e8 100644
--- a/include/tests_networking
+++ b/include/tests_networking
@@ -45,7 +45,7 @@
IPV6_ONLY=255
IPV6_MISCONFIGURED=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
IPV6_CONFIGURED=1
for I in ${FIND}; do