2014-06-07 07:33:28 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. /lib/functions.sh
|
|
|
|
. ../netifd-proto.sh
|
|
|
|
init_proto "$@"
|
|
|
|
|
|
|
|
proto_batadv_vlan_init_config() {
|
2019-06-16 09:27:08 +02:00
|
|
|
proto_config_add_boolean 'ap_isolation:bool'
|
2014-06-07 07:33:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
proto_batadv_vlan_setup() {
|
|
|
|
local config="$1"
|
|
|
|
local iface="$2"
|
|
|
|
|
|
|
|
# batadv_vlan options
|
|
|
|
local ap_isolation
|
|
|
|
|
|
|
|
json_get_vars ap_isolation
|
|
|
|
|
2019-06-16 09:27:08 +02:00
|
|
|
[ -n "$ap_isolation" ] && batctl -m "$iface" ap_isolation "$ap_isolation"
|
2014-06-07 07:33:28 +02:00
|
|
|
proto_init_update "$iface" 1
|
|
|
|
proto_send_update "$config"
|
|
|
|
}
|
|
|
|
|
|
|
|
add_protocol batadv_vlan
|