mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
https://github.com/tonarino/innernet A private network system that uses WireGuard under the hood
19 lines
443 B
Bash
19 lines
443 B
Bash
#!/sbin/openrc-run
|
|
description="innernet VPN client service"
|
|
|
|
# To manage the wireguard interface named "ifname", link this file
|
|
# to /etc/init.d/innernet.ifname and start that service
|
|
interface="${RC_SVCNAME##*.}"
|
|
|
|
command="/usr/sbin/innernet"
|
|
command_args="up $interface --daemon ${command_extra_args:---interval 60}"
|
|
command_background=true
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
|
|
stop_post() {
|
|
$command down $interface
|
|
}
|
|
|
|
depend() {
|
|
use net
|
|
}
|