mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 01:28:59 +00:00
8037417744
Ethernet LED assignments were incorrectly swapped. Fix the assignment logic so the correct LED is illuminated for the LAN LEDs. Signed-off-by: David Bauer <mail@david-bauer.net>
24 lines
462 B
Plaintext
24 lines
462 B
Plaintext
|
|
. /lib/functions/leds.sh
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board=$(board_name)
|
|
boardname="${board##*,}"
|
|
|
|
board_config_update
|
|
|
|
case $board in
|
|
enterasys,ws-ap3715i)
|
|
ucidef_set_led_netdev "lan1" "LAN1" "green:lan1" "eth0"
|
|
ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "eth1"
|
|
;;
|
|
extreme-networks,ws-ap3825i)
|
|
ucidef_set_led_netdev "lan1" "LAN1" "green:lan1" "eth1"
|
|
ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "eth0"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|