From 0d8c58efdefee2babbe7beffbf9b94992718527b Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 9 Mar 2007 15:34:47 +0000 Subject: [PATCH] Hide ifconfig errors on FreeBSD. Package-Manager: portage-2.1.2.2 --- net-misc/openvpn/ChangeLog | 5 ++++- net-misc/openvpn/files/openvpn-2.1.init | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 -- 2.26.2