From: Roy Marples Date: Fri, 9 Mar 2007 15:34:47 +0000 (+0000) Subject: Hide ifconfig errors on FreeBSD. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0d8c58efdefee2babbe7beffbf9b94992718527b;p=gentoo.git Hide ifconfig errors on FreeBSD. Package-Manager: portage-2.1.2.2 --- diff --git a/net-misc/openvpn/ChangeLog b/net-misc/openvpn/ChangeLog index 1bbf1e2b49db..7d4b4396abea 100644 --- a/net-misc/openvpn/ChangeLog +++ b/net-misc/openvpn/ChangeLog @@ -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 files/openvpn-2.1.init: + Hide ifconfig errors on FreeBSD. *openvpn-2.1_rc2 (04 Mar 2007) diff --git a/net-misc/openvpn/files/openvpn-2.1.init b/net-misc/openvpn/files/openvpn-2.1.init index 972e80fdd82e..a7ce284d3b79 100755 --- a/net-misc/openvpn/files/openvpn-2.1.init +++ b/net-misc/openvpn/files/openvpn-2.1.init @@ -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