3 [ -n "$INCLUDE_ONLY" ] ||
{
9 proto_batadv_hardif_init_config
() {
10 proto_config_add_int
'elp_interval'
11 proto_config_add_string
"master"
12 proto_config_add_string
'throughput_override'
15 proto_batadv_hardif_setup
() {
21 local throughput_override
23 json_get_vars elp_interval
25 json_get_vars throughput_override
27 ( proto_add_host_dependency
"$config" '' "$master" )
29 batctl
-m "$master" interface
-M add
"$iface"
31 [ -n "$elp_interval" ] && batctl
-m "$master" hardif
"$iface" elp_interval
"$elp_interval"
32 [ -n "$throughput_override" ] && batctl
-m "$master" hardif
"$iface" throughput_override
"$throughput_override"
34 proto_init_update
"$iface" 1
35 proto_send_update
"$config"
38 proto_batadv_hardif_teardown
() {
46 batctl
-m "$master" interface
-M del
"$iface" || true
49 add_protocol batadv_hardif