mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-21 12:20:16 +00:00
24 lines
580 B
Text
24 lines
580 B
Text
|
#!/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
|
||
|
}
|