* [gentoo-commits] repo/gentoo:master commit in: net-vpn/wireguard-tools/files/
@ 2020-08-07 16:13 Jason A. Donenfeld
0 siblings, 0 replies; only message in thread
From: Jason A. Donenfeld @ 2020-08-07 16:13 UTC (permalink / raw
To: gentoo-commits
commit: c4d3aa2b6474fe2a38ffc85a96709c10b00ff6a8
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 7 16:12:51 2020 +0000
Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
CommitDate: Fri Aug 7 16:13:28 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4d3aa2b
net-vpn/wireguard-tools: actually use checkconfig
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org>
net-vpn/wireguard-tools/files/wg-quick.init | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net-vpn/wireguard-tools/files/wg-quick.init b/net-vpn/wireguard-tools/files/wg-quick.init
index ad687410405..78047278203 100644
--- a/net-vpn/wireguard-tools/files/wg-quick.init
+++ b/net-vpn/wireguard-tools/files/wg-quick.init
@@ -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"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-07 16:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-07 16:13 [gentoo-commits] repo/gentoo:master commit in: net-vpn/wireguard-tools/files/ Jason A. Donenfeld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox