From: Stuart Henderson Date: Thu, 8 Nov 2012 19:37:35 +0000 (+0000) Subject: redirect stderr from which (not grep) to /dev/null X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c2f2f68aa73b2479d94bf3dd1cc7d9bfaf9cd6e7;p=users%2Fdwmw2%2Fvpnc-scripts.git redirect stderr from which (not grep) to /dev/null Signed-off-by: Stuart Henderson Signed-off-by: David Woodhouse --- diff --git a/vpnc-script b/vpnc-script index 11cdc32..9737995 100755 --- a/vpnc-script +++ b/vpnc-script @@ -89,7 +89,7 @@ if [ ! -d "/var/run/vpnc" ]; then fi # stupid SunOS: no blubber in /usr/local/bin ... (on stdout) -IPROUTE="`which ip | grep '^/'`" 2> /dev/null +IPROUTE="`which ip 2> /dev/null | grep '^/'`" if ifconfig --help 2>&1 | grep BusyBox > /dev/null; then ifconfig_syntax_inet=""