mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
changelog: https://github.com/netbirdio/netbird/releases/tag/v0.53.0 Update init file to include `NB_CONFIG="/etc/netbird/config.json"` variable, ensuring configuration compatibility as before (fixes issue introduced by profiles feature in 0.52.2). Existing configurations remain compatible. Note: license for some components (`management`, `relay`, `signal`) changed to **AGPLv3**. These components aren't packaged for OpenWrt, so there's no immediate effect, but record the change for future reference. Signed-off-by: Wesley Gimenes <wehagy@proton.me>
16 lines
306 B
Bash
Executable File
16 lines
306 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=99
|
|
STOP=10
|
|
|
|
USE_PROCD=1
|
|
|
|
start_service() {
|
|
procd_open_instance
|
|
procd_set_param command /usr/bin/netbird
|
|
procd_set_param env NB_CONFIG="/etc/netbird/config.json"
|
|
procd_append_param command service run
|
|
procd_set_param pidfile /var/run/netbird.pid
|
|
procd_close_instance
|
|
}
|