aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mpc85xx/base-files
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2022-03-24 23:09:24 +0100
committerDavid Bauer <mail@david-bauer.net>2022-04-17 01:16:16 +0200
commitd76b25938cafac8c77042334f7975e880404c448 (patch)
treebd1dbd5135c599087ceecd77e75c393268e24b80 /target/linux/mpc85xx/base-files
parent144760d20600a86fbf1974b94f2fcb0830df608e (diff)
downloadupstream-d76b25938cafac8c77042334f7975e880404c448.tar.gz
upstream-d76b25938cafac8c77042334f7975e880404c448.tar.bz2
upstream-d76b25938cafac8c77042334f7975e880404c448.zip
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> (cherry picked from commit 9024f1e466f5ab64bc752d8a463d1867a2ba8d8e)
Diffstat (limited to 'target/linux/mpc85xx/base-files')
-rw-r--r--target/linux/mpc85xx/base-files/etc/board.d/01_leds19
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/mpc85xx/base-files/etc/board.d/01_leds b/target/linux/mpc85xx/base-files/etc/board.d/01_leds
new file mode 100644
index 0000000000..391c909e4c
--- /dev/null
+++ b/target/linux/mpc85xx/base-files/etc/board.d/01_leds
@@ -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