forked from freifunk-franken/firmware
Adrian Schmutzler
cb4bce7cc2
So far, we define PORTORDER individually in each network.* file. This creates a lot of duplications, and makes the code to parse those values very ugly (and it's only used outside of configurenetwork anyway). Therefore, move the assignment to a library file, and wrap it into a function for tidyness. This gives us more overview and nicer implementation of the retrieval. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Acked-by: Christian Dresel <freifunk@dresel.systems> Reviewed-by: Robert Langhammer <rlanghammer@web.de>
11 lines
207 B
Plaintext
11 lines
207 B
Plaintext
. /lib/functions/system.sh
|
|
|
|
WANDEV=eth0
|
|
SWITCHDEV=eth0
|
|
CLIENT_PORTS="6t 3 4"
|
|
WAN_PORTS="6t 0"
|
|
BATMAN_PORTS="6t 1 2"
|
|
|
|
ROUTERMAC=$(cat /sys/class/net/eth0/address)
|
|
ETHMESHMAC=$(macaddr_setbit_la "$ROUTERMAC")
|