blob: 87427c4061c2041588d7cf16003944066e972971 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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
}
|