mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
mvebu: puzzle: wan LED and fix default network
Fix default network configuration of the Puzzle-M902 so all LAN ports
are included in the LAN bridge.
Setup network LED to indicate WAN port link status, like vendor
firmware does as well.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit f9782f5bcd
)
This commit is contained in:
parent
47d82f0710
commit
104774c3b0
20
target/linux/mvebu/cortexa72/base-files/etc/board.d/01_leds
Normal file
20
target/linux/mvebu/cortexa72/base-files/etc/board.d/01_leds
Normal file
@ -0,0 +1,20 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
. /lib/functions/uci-defaults.sh
|
||||
|
||||
board_config_update
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
iei,puzzle-m901)
|
||||
ucidef_set_led_netdev "wan" "WAN" "white:network" "eth0" "link"
|
||||
;;
|
||||
iei,puzzle-m902)
|
||||
ucidef_set_led_netdev "wan" "WAN" "white:network" "eth2" "link"
|
||||
;;
|
||||
esac
|
||||
|
||||
board_config_flush
|
||||
|
||||
exit 0
|
2
target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network
Executable file → Normal file
2
target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network
Executable file → Normal file
@ -15,7 +15,7 @@ iei,puzzle-m901)
|
||||
ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4 eth5" "eth0"
|
||||
;;
|
||||
iei,puzzle-m902)
|
||||
ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4 eth5 eth10 eth11 eth12" "eth0"
|
||||
ucidef_set_interfaces_lan_wan "eth0 eth1 eth3 eth4 eth5 eth6 eth7 eth8" "eth2"
|
||||
;;
|
||||
marvell,armada8040-mcbin-doubleshot|\
|
||||
marvell,armada8040-mcbin-singleshot)
|
||||
|
Loading…
Reference in New Issue
Block a user