The ap_isolation setting only supports boolean values. So setting an empty
string as ap_isolation is not supported by batctl.
Fixes: f5205d7d24
("batman-adv: upgrade package to latest release 2014.2.0")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
25 lines
453 B
Bash
Executable file
25 lines
453 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 -m "$iface" ap_isolation "$ap_isolation"
|
|
proto_init_update "$iface" 1
|
|
proto_send_update "$config"
|
|
}
|
|
|
|
add_protocol batadv_vlan
|