mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-10 21:44:27 +02:00
main/wireguard-tools: add openrc reload config
This commit is contained in:
parent
a49c369820
commit
443d7258b1
2 changed files with 10 additions and 2 deletions
main/wireguard-tools
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
|
||||
pkgname=wireguard-tools
|
||||
pkgver=1.0.20210914
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="Next generation secure network tunnel: userspace tools"
|
||||
arch="all"
|
||||
url="https://www.wireguard.com"
|
||||
|
@ -60,5 +60,5 @@ _split() {
|
|||
|
||||
sha512sums="
|
||||
6727ea65551dbb064457449b93a943bd6534ca93bc7fa5704c2f6826266c98688ee9ea28731fda57a5245d5f63c05f3899fcca54e40c0b6251b7c4796e957445 wireguard-tools-1.0.20210914.tar.xz
|
||||
3de3edb359a786bdb8de06f496caced1293048c2ec489073c0525b4eca61365424ffde6a7eb899d7672db38872b6c67436b2e39019e92300ca5e590ba02c2e84 wg-quick.initd
|
||||
ad02a7bab0038aaaeacc80ea61497911cb4af6dafe6c781a142cceb4d18acbae20c5e86396e00e88848f410caccc0137c2bff9a736ceff59e0c1227d0d926a15 wg-quick.initd
|
||||
"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
name="WireGuard"
|
||||
description="WireGuard via wg-quick(8)"
|
||||
extra_started_commands="reload"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
|
@ -36,3 +37,10 @@ stop() {
|
|||
wg-quick down "$CONF"
|
||||
eend $? "Failed to stop $description for $CONF"
|
||||
}
|
||||
|
||||
reload() {
|
||||
checkconfig || return 1
|
||||
ebegin "Reloading $description for $CONF"
|
||||
wg syncconf "$CONF" <(wg-quick strip "$CONF")
|
||||
eend $? "Failed to reload $description for $CONF"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue