batman-adv: Provide teardown hook for batadv_vlan proto 1045/head
authorSven Eckelmann <sven@narfation.org>
Mon, 5 Feb 2024 07:52:23 +0000 (08:52 +0100)
committerSven Eckelmann <sven@narfation.org>
Mon, 5 Feb 2024 08:04:42 +0000 (09:04 +0100)
The batadv_vlan proto doesn't need to do anything when it gets teared down.
But the scripts are still trying to call the teardown function of this
proto. This results in warnings like:

    daemon.notice netifd: batmesh1 (18940): ./batadv_vlan.sh: eval: line 37: proto_batadv_vlan_teardown: not found

Just providing a stub function avoids this log spam.

Fixes: #1044
Reported-by: Rani Hod <rani.hod@gmail.com>
Fixes: f5205d7d2434 ("batman-adv: upgrade package to latest release 2014.2.0")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
batman-adv/Makefile
batman-adv/files/lib/netifd/proto/batadv_vlan.sh

index cbcf316ebce4f2175e8266ab6f949cf0ae8fed4c..2fed73affb4589d8dbfb4ad3312e121aeb52677a 100644 (file)
@@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=batman-adv
 PKG_VERSION:=2024.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
index 115e61cde75137d62f236fe6391b696ad76e307e..5b0c76fd2efcdeb46765792dcbb43c741665372b 100755 (executable)
@@ -22,4 +22,8 @@ proto_batadv_vlan_setup() {
        proto_send_update "$config"
 }
 
+proto_batadv_vlan_teardown() {
+       local cfg="$1"
+}
+
 add_protocol batadv_vlan