From c3d5dabb490a1f22eccc74ea3db52e4b77fd4c03 Mon Sep 17 00:00:00 2001 From: mboelen Date: Thu, 17 Mar 2016 21:02:28 +0100 Subject: Move stderr redirection to sysctl command instead of grep, to prevent errors displaying on screen --- include/tests_networking | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3