Hide ifconfig errors on FreeBSD.
authorRoy Marples <uberlord@gentoo.org>
Fri, 9 Mar 2007 15:34:47 +0000 (15:34 +0000)
committerRoy Marples <uberlord@gentoo.org>
Fri, 9 Mar 2007 15:34:47 +0000 (15:34 +0000)
Package-Manager: portage-2.1.2.2

net-misc/openvpn/ChangeLog
net-misc/openvpn/files/openvpn-2.1.init

index 1bbf1e2b49dba0b46c77f3e8c94f8f158fbf5653..7d4b4396abea554d8cad9877b8adf358f0562983 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for net-misc/openvpn
 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/ChangeLog,v 1.106 2007/03/04 16:28:05 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/ChangeLog,v 1.107 2007/03/09 15:34:47 uberlord Exp $
+
+  09 Mar 2007; Roy Marples <uberlord@gentoo.org> files/openvpn-2.1.init:
+  Hide ifconfig errors on FreeBSD.
 
 *openvpn-2.1_rc2 (04 Mar 2007)
 
index 972e80fdd82e860a98c0e58dd822dcb5d594a2d9..a7ce284d3b79aec976509e38172cd6f82686a26b 100755 (executable)
@@ -45,11 +45,11 @@ checkconfig() {
                return 1
        fi
 
-       if ! ifconfig "${ifname}" >/dev/null ; then
+       if ! ifconfig "${ifname}" >/dev/null 2>/dev/null ; then
                # Try and create it
                echo > /dev/"${ifname}" >/dev/null
        fi
-       if ! ifconfig "${ifname}" >/dev/null ; then
+       if ! ifconfig "${ifname}" >/dev/null 2>/dev/null ; then
                eerror "${VPNCONF} requires interface ${ifname}" \
                        "but that does not exist"
                return 1