diff options
author | Jason A. Donenfeld <zx2c4@gentoo.org> | 2017-01-02 17:12:41 +0100 |
---|---|---|
committer | Jason A. Donenfeld <zx2c4@gentoo.org> | 2017-01-02 17:12:58 +0100 |
commit | d4d0fe63765f499fce0d5a837eb24fbf83329f1c (patch) | |
tree | 9454743ed325a89881181ffda7dd25f6a7cc4d9a /net-misc/wireguard | |
parent | sys-apps/udevil: revbump, fixes bug 580364 (diff) | |
download | gentoo-d4d0fe63765f499fce0d5a837eb24fbf83329f1c.tar.gz gentoo-d4d0fe63765f499fce0d5a837eb24fbf83329f1c.tar.bz2 gentoo-d4d0fe63765f499fce0d5a837eb24fbf83329f1c.zip |
net-misc/wireguard: fix netifrc
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-misc/wireguard')
-rw-r--r-- | net-misc/wireguard/files/wireguard-openrc.sh | 2 | ||||
-rw-r--r-- | net-misc/wireguard/wireguard-0.0.20161230-r1.ebuild (renamed from net-misc/wireguard/wireguard-0.0.20161230.ebuild) | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/net-misc/wireguard/files/wireguard-openrc.sh b/net-misc/wireguard/files/wireguard-openrc.sh index 9c3df6a91e05..9c53ef0ffa72 100644 --- a/net-misc/wireguard/files/wireguard-openrc.sh +++ b/net-misc/wireguard/files/wireguard-openrc.sh @@ -10,6 +10,7 @@ wireguard_depend() wireguard_pre_start() { + [[ $IFACE == wg* ]] || return 0 ip link delete dev "$IFACE" type wireguard 2>/dev/null ebegin "Creating WireGuard interface $IFACE" if ! ip link add dev "$IFACE" type wireguard; then @@ -37,6 +38,7 @@ wireguard_pre_start() wireguard_post_stop() { + [[ $IFACE == wg* ]] || return 0 ebegin "Removing WireGuard interface $IFACE" ip link delete dev "$IFACE" type wireguard eend $? diff --git a/net-misc/wireguard/wireguard-0.0.20161230.ebuild b/net-misc/wireguard/wireguard-0.0.20161230-r1.ebuild index 0aa291de13d6..06402df303dd 100644 --- a/net-misc/wireguard/wireguard-0.0.20161230.ebuild +++ b/net-misc/wireguard/wireguard-0.0.20161230-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ |