netbird: cleanup init script
authorWesley Gimenes <[email protected]>
Tue, 5 Aug 2025 12:53:05 +0000 (09:53 -0300)
committerWesley Gimenes <[email protected]>
Wed, 10 Sep 2025 22:09:49 +0000 (19:09 -0300)
Remove parameters added in commit 7b3d033ab651dd11e0db5fb099d106c9e09a2dc6
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 <[email protected]>
net/netbird/Makefile
net/netbird/files/netbird.init

index 3e7a2e522a3c468bde0d7490113d40068886309d..2102ad3090dd7db68144900cdcea7eb2f280e257 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=netbird
 PKG_VERSION:=0.51.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/netbirdio/netbird/tar.gz/v$(PKG_VERSION)?
index 87427c4061c2041588d7cf16003944066e972971..b7ccd2d4b253e70b3c5a96a704ec6ba7d857e3e8 100755 (executable)
@@ -1,19 +1,11 @@
 #!/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