forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mpc85xx: overhaul WS-AP3825i LED setup
As the LED controller is working now, we can make good use of the LEDs now. - Drop the model-name prefix - Rename eth0 / eth1 LEDs to LAN1 / LAN2, as they are labeled as such on the casing - Enable wired LEDs in userspace Signed-off-by: David Bauer <mail@david-bauer.net>
- Loading branch information
1 parent
f0c09d0
commit 9024f1e
Showing
2 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
. /lib/functions/leds.sh | ||
. /lib/functions/uci-defaults.sh | ||
|
||
board=$(board_name) | ||
boardname="${board##*,}" | ||
|
||
board_config_update | ||
|
||
case $board in | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters