openwrt/package/network/services/unetd/files/unetd.init
Felix Fietkau 104de8abe4 unetd: add WireGuard based VPN connection manager for OpenWrt
This package simplifies setting up wireguard networks on OpenWrt by a wireguard
network as a JSON file, which can be shared across all participating nodes.
It can be signed with an authentication key and automatically kept in sync.
unetd also supports deterministically generating ipv6 addresses for each host
based on the public key and storing those in a hosts file that can be used with
dnsmasq. It also supports automatically creating VXLAN tunnels between multiple
endpoints.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-08-27 15:24:58 +02:00

18 lines
326 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (c) 2022 OpenWrt.org
START=19
USE_PROCD=1
PROG=/usr/sbin/unetd
start_service() {
mkdir -p /var/run/unetd /etc/unetd
procd_open_instance
procd_set_param command "$PROG" -h /var/run/unetd/hosts
procd_set_param respawn
procd_set_param limits core="unlimited"
procd_close_instance
}