forked from freifunk-franken/firmware
Adrian Schmutzler
20be967e65
This adds information to the switch port overview and shows the VLAN configuration. For some routers the port order is provided, so the physical arrangement is resembled in the Web UI. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Tim Niemeyer <tim@tn-x.org>
18 lines
485 B
Plaintext
18 lines
485 B
Plaintext
PORTORDER="5 4 3 2 1"
|
|
|
|
WANDEV=eth0
|
|
SWITCHDEV=eth0
|
|
CLIENT_PORTS="1 2 0t"
|
|
WAN_PORTS="5 0t"
|
|
BATMAN_PORTS="3 4 0t"
|
|
|
|
. /lib/functions/system.sh
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/ar71xx.sh
|
|
|
|
# Load second MAC from Flash because we haven't any Interface with this MAC where we can copy the MAC from
|
|
# https://github.com/lede-project/source/pull/613/files#diff-abd6f42f54204372151e73eac0556db1
|
|
|
|
ETHMESHMAC=$(mtd_get_mac_binary config 0x1017c)
|
|
ROUTERMAC=$(cat /sys/class/net/eth0/address)
|