mpc85xx: overhaul WS-AP3825i LED setup
[openwrt/openwrt.git] / target / linux / mpc85xx / base-files / etc / board.d / 01_leds
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 (file)
index 0000000..391c909
--- /dev/null
@@ -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