Commit a9f3545
committed
gluon-mesh-batman-adv: move wireless hop_penalty handling from gluon-core
The batadv_hop_penalty option for wireless mesh interfaces was read in
gluon-core's 200-wireless, mixing the batman-adv-specific option name
into the generic wireless configurator. Move the read into a new
gluon-mesh-batman-adv upgrade script (305) that runs after 200-wireless
has created the mesh_<radio> network interfaces.
Behavior is preserved: when gluon.band_X.batadv_hop_penalty is set,
hop_penalty is applied to network.mesh_<radio>; when unset, it is left
absent and gluon_bat0.sh defaults it to 0 at runtime (same as the
previous 'or 0' fallback in 200-wireless).
Also document the wireless band-scoped hop_penalty in
gluon-mesh-batman-adv.rst alongside the existing wired/VPN variants.1 parent 034730c commit a9f3545
3 files changed
Lines changed: 23 additions & 3 deletions
File tree
- docs/package
- package
- gluon-core/luasrc/lib/gluon/upgrade
- gluon-mesh-batman-adv/luasrc/lib/gluon/upgrade
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | 137 | | |
140 | 138 | | |
141 | | - | |
142 | 139 | | |
143 | 140 | | |
144 | 141 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments