Skip to content

Commit

Permalink
batman-adv: Provide teardown hook for batadv_vlan proto
Browse files Browse the repository at this point in the history
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 <[email protected]>
Fixes: f5205d7 ("batman-adv: upgrade package to latest release 2014.2.0")
Signed-off-by: Sven Eckelmann <[email protected]>
  • Loading branch information
ecsv committed Feb 5, 2024
1 parent 6a7a1a5 commit 9090aef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion batman-adv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions batman-adv/files/lib/netifd/proto/batadv_vlan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ proto_batadv_vlan_setup() {
proto_send_update "$config"
}

proto_batadv_vlan_teardown() {
local cfg="$1"
}

add_protocol batadv_vlan

0 comments on commit 9090aef

Please sign in to comment.