netbird: cleanup init script

Remove parameters added in commit 7b3d033ab6
that were intended to reestablish the `netbird` connection when the
`wan` state changes. This functionality is already handled by
`netbird`. If it fails, it should be reported as a bug upstream.

Signed-off-by: Wesley Gimenes <wehagy@proton.me>
This commit is contained in:
Wesley Gimenes
2025-08-05 09:53:05 -03:00
committed by Wesley Gimenes
parent 2bbca5dfa0
commit ca14c7e628
2 changed files with 1 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=netbird PKG_NAME:=netbird
PKG_VERSION:=0.51.2 PKG_VERSION:=0.51.2
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/netbirdio/netbird/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/netbirdio/netbird/tar.gz/v$(PKG_VERSION)?

View File

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