summaryrefslogtreecommitdiff
path: root/target/linux/mvebu
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2014-07-01 09:45:41 +0000
committerImre Kaloz <kaloz@openwrt.org>2014-07-01 09:45:41 +0000
commitb7b222279cbcd08359f4da630043c9e9163b2db3 (patch)
tree17dc52d0c9bad8951d6badc0a1a5c55ce09d1a46 /target/linux/mvebu
parent6fa01eab809a4d88fbc9b0262e6f7329576c33b1 (diff)
downloadmtk-20170518-b7b222279cbcd08359f4da630043c9e9163b2db3.zip
mtk-20170518-b7b222279cbcd08359f4da630043c9e9163b2db3.tar.gz
mtk-20170518-b7b222279cbcd08359f4da630043c9e9163b2db3.tar.bz2
set led triggers for the Linksys WRT1900AC
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 41436
Diffstat (limited to 'target/linux/mvebu')
-rwxr-xr-xtarget/linux/mvebu/base-files/etc/uci-defaults/01_leds22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/mvebu/base-files/etc/uci-defaults/01_leds b/target/linux/mvebu/base-files/etc/uci-defaults/01_leds
new file mode 100755
index 0000000..6488620
--- /dev/null
+++ b/target/linux/mvebu/base-files/etc/uci-defaults/01_leds
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# Copyright (C) 2014 OpenWrt.org
+#
+
+. /lib/functions/uci-defaults.sh
+. /lib/mvebu.sh
+
+board=$(mvebu_board_name)
+
+case "$board" in
+armada-xp-mamba)
+ #ucidef_set_led_netdev "wan" "WAN" "tlc59116:1" "eth1"
+ ucidef_set_led_usbdev "usb1" "USB1" "tlc59116:5" "1-1"
+ ucidef_set_led_usbdev "usb2" "USB2" "tlc59116:6" "2-2"
+ ;;
+
+esac
+
+ucidef_commit_leds
+
+exit 0