mirror of
https://github.com/openwrt/routing.git
synced 2025-02-07 13:10:27 +00:00
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>
30 lines
505 B
Bash
Executable File
30 lines
505 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /lib/functions.sh
|
|
. ../netifd-proto.sh
|
|
init_proto "$@"
|
|
|
|
proto_batadv_vlan_init_config() {
|
|
proto_config_add_boolean 'ap_isolation:bool'
|
|
}
|
|
|
|
proto_batadv_vlan_setup() {
|
|
local config="$1"
|
|
local iface="$2"
|
|
|
|
# batadv_vlan options
|
|
local ap_isolation
|
|
|
|
json_get_vars ap_isolation
|
|
|
|
[ -n "$ap_isolation" ] && batctl vlan "$iface" ap_isolation "$ap_isolation"
|
|
proto_init_update "$iface" 1
|
|
proto_send_update "$config"
|
|
}
|
|
|
|
proto_batadv_vlan_teardown() {
|
|
local cfg="$1"
|
|
}
|
|
|
|
add_protocol batadv_vlan
|