1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 12:23:59 +02:00
openwrt-packages/net/netbird/files/netbird.init
Oskari Rauta 7b3d033ab6 netbird: update to version 0.24.2
Release notes: https://github.com/netbirdio/netbird/releases/tag/v0.24.2

Also fixes issue of not being able to build with musl (>1.2.4)

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2023-11-19 13:22:12 +08:00

23 lines
395 B
Bash
Executable File

#!/bin/sh /etc/rc.common
. /lib/netifd/netifd-proto.sh
START=99
STOP=10
USE_PROCD=1
service_triggers() {
procd_add_interface_trigger "interface.*" "wan" /etc/init.d/netbird restart
}
start_service() {
local device
procd_open_instance
procd_set_param command /usr/bin/netbird
procd_append_param command service run
procd_set_param pidfile /var/run/netbird.pid
procd_close_instance
}