mirror of
https://git.disroot.org/pranav/pybatmesh.git
synced 2025-01-16 11:42:49 +05:30
Pranav Jerry
d0389e5638
Added arg and config option to manually set gw_mode. When gateway_mode is auto, a temporary config will be added, and after a ten sec delay, naxalnet will check if systemd-networkd shows a 'routable' connection. If the connection is routable, gw_mode will be set to server; or client otherwise.
11 lines
253 B
SYSTEMD
11 lines
253 B
SYSTEMD
# Create the BATMAN interface
|
|
# See 04-batman.network for configuration details
|
|
[NetDev]
|
|
Name={batdev}
|
|
Description=BATMAN interface
|
|
Kind=batadv
|
|
|
|
# see man:systemd.netdev(5) § [BATMANADVANCED] SECTION OPTIONS
|
|
[BatmanAdvanced]
|
|
GatewayMode={gateway_mode}
|