diff options
author | Jason A. Donenfeld <zx2c4@gentoo.org> | 2020-08-07 18:12:51 +0200 |
---|---|---|
committer | Jason A. Donenfeld <zx2c4@gentoo.org> | 2020-08-07 18:13:28 +0200 |
commit | c4d3aa2b6474fe2a38ffc85a96709c10b00ff6a8 (patch) | |
tree | 1b47233a2f15f30edde62add86feb6da8fe80244 /net-vpn | |
parent | dev-libs/jsoncpp: Update SRC_URI (diff) | |
download | gentoo-c4d3aa2b6474fe2a38ffc85a96709c10b00ff6a8.tar.gz gentoo-c4d3aa2b6474fe2a38ffc85a96709c10b00ff6a8.tar.bz2 gentoo-c4d3aa2b6474fe2a38ffc85a96709c10b00ff6a8.zip |
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>
Diffstat (limited to 'net-vpn')
-rw-r--r-- | net-vpn/wireguard-tools/files/wg-quick.init | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net-vpn/wireguard-tools/files/wg-quick.init b/net-vpn/wireguard-tools/files/wg-quick.init index ad6874104051..780472782031 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" |