net-vpn/wireguard-tools: actually use checkconfig

Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
This commit is contained in:
Jason A. Donenfeld
2020-08-07 18:13:28 +02:00
parent 1cd2e932f5
commit c4d3aa2b64
@@ -20,15 +20,18 @@ checkconfig() {
eerror " /etc/init.d/wg-quick.vpn0 start"
return 1
fi
return 0
}
start() {
checkconfig || return 1
ebegin "Starting $description for $CONF"
wg-quick up "$CONF"
eend $? "Failed to start $description for $CONF"
}
stop() {
checkconfig || return 1
ebegin "Stopping $description for $CONF"
wg-quick down "$CONF"
eend $? "Failed to stop $description for $CONF"