Package-Manager: Portage-2.3.3, Repoman-2.3.1
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
wireguard_post_stop()
{
+ [[ $IFACE == wg* ]] || return 0
ebegin "Removing WireGuard interface $IFACE"
ip link delete dev "$IFACE" type wireguard
eend $?
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$