From 03b4663bcec106563a5f6cbf041e61626b03fb27 Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Mon, 5 Feb 2024 08:52:23 +0100 Subject: [PATCH] batman-adv: Provide teardown hook for batadv_vlan proto 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 Fixes: f5205d7d2434 ("batman-adv: upgrade package to latest release 2014.2.0") Signed-off-by: Sven Eckelmann --- batman-adv/Makefile | 2 +- batman-adv/files/lib/netifd/proto/batadv_vlan.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/batman-adv/Makefile b/batman-adv/Makefile index f2cded6..1b9265c 100644 --- a/batman-adv/Makefile +++ b/batman-adv/Makefile @@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=batman-adv PKG_VERSION:=2022.0 -PKG_RELEASE:=8 +PKG_RELEASE:=9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION) diff --git a/batman-adv/files/lib/netifd/proto/batadv_vlan.sh b/batman-adv/files/lib/netifd/proto/batadv_vlan.sh index 115e61c..5b0c76f 100755 --- a/batman-adv/files/lib/netifd/proto/batadv_vlan.sh +++ b/batman-adv/files/lib/netifd/proto/batadv_vlan.sh @@ -22,4 +22,8 @@ proto_batadv_vlan_setup() { proto_send_update "$config" } +proto_batadv_vlan_teardown() { + local cfg="$1" +} + add_protocol batadv_vlan -- 2.30.2