pivpn/files/etc/init.d/wg-quick
2022-07-26 15:20:35 +02:00

23 lines
580 B
Text
Executable file

#!/sbin/openrc-run
#################################################################################
# Filename: files/etc/init.d/wg-quick #
# Purpose: OpenRC service that starts WireGuard #
# Authors: Giulio Coa <34110430+giulioc008@users.noreply.github.com> #
# License: This file is licensed under the MIT. #
#################################################################################
description="WireGuard - Quick version"
depend() {
need localmount
need net
}
start() {
wg-quick up wg0
}
stop() {
wg-quick down wg0
}