[PATCH] fff-network: Make CLIENT default status for one-/two-port devices

Adrian Schmutzler freifunk at adrianschmutzler.de
Mi Sep 19 00:44:53 CEST 2018


The V2 firmware requires initialization of the WiFi interfaces
by a hood file. If a one-port (or two-port) device is isolated,
it won't get this information from other WiFi nodes (w2sta mode).

In addition, it cannot be connected to the internet, as this would
require the port to be in WAN mode. It is also not possible to
connect a client device for configuration, since WiFi is not
configured and the LAN port is in BATMAN mode.

To enable configuration of an isolated one-port/two-port device,
this patch thus changes the default port config to CLIENT, so
the user can choose the desired configuration more easily.

For two-port, we will have one port WAN and the second port
CLIENT.

Fixes #110

Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 src/packages/fff/fff-network/ar71xx/network.mode | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/packages/fff/fff-network/ar71xx/network.mode b/src/packages/fff/fff-network/ar71xx/network.mode
index 09cd715f..f3a27939 100644
--- a/src/packages/fff/fff-network/ar71xx/network.mode
+++ b/src/packages/fff/fff-network/ar71xx/network.mode
@@ -22,9 +22,9 @@
 ## For example this is the case for: gl-ar150, tl-mr3020-v1, tl-wa850re-v1,
 ## tl-wa860re-v1, tl-wa901nd-v2, ubnt-bullet-m, ubnt-loco-m-xw, ubnt-nano-m,
 ## ubnt-unifi
-ETHMODE="BATMAN"
+ETHMODE="CLIENT"
 ## Devices featuring 2 ethernet ports are configured by SPECIFIERs ressembling
 ## the labels on the PORT itself. For the cpe210 these are called LAN0 and LAN1.
 ## Therefore they are configured as follows:
 LAN0MODE="WAN"
-LAN1MODE="BATMAN"
+LAN1MODE="CLIENT"
-- 
2.11.0



Mehr Informationen über die Mailingliste franken-dev