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>
22 lines
395 B
Bash
Executable file
22 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
|
|
}
|