summaryrefslogtreecommitdiff
path: root/target/linux/cns21xx/base-files/etc/uci-defaults/leds
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-05-29 16:39:22 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-05-29 16:39:22 +0000
commit29a579e43aa7fd8eafd60d40f71f8c135c529350 (patch)
tree565b0ce937087df5214635f65d622157012c8c22 /target/linux/cns21xx/base-files/etc/uci-defaults/leds
parentff743056237638ee3a77934b5c513244dc4b0f81 (diff)
downloadmtk-20170518-29a579e43aa7fd8eafd60d40f71f8c135c529350.zip
mtk-20170518-29a579e43aa7fd8eafd60d40f71f8c135c529350.tar.gz
mtk-20170518-29a579e43aa7fd8eafd60d40f71f8c135c529350.tar.bz2
cns21xx: use the generic uci-default functions for initial LED setup
SVN-Revision: 31996
Diffstat (limited to 'target/linux/cns21xx/base-files/etc/uci-defaults/leds')
-rwxr-xr-xtarget/linux/cns21xx/base-files/etc/uci-defaults/leds21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/cns21xx/base-files/etc/uci-defaults/leds b/target/linux/cns21xx/base-files/etc/uci-defaults/leds
new file mode 100755
index 0000000..bdebb6c
--- /dev/null
+++ b/target/linux/cns21xx/base-files/etc/uci-defaults/leds
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# Copyright (C) 2010 OpenWrt.org
+#
+
+. /lib/functions/uci-defaults.sh
+. /lib/cns21xx.sh
+
+board=$(get_board_name)
+
+case "$board" in
+"ns-k330")
+ ucidef_set_led_netdev "eth_orange" "ETH (orange)" "ns-k330:orange:eth" "eth0"
+ ucidef_set_led_usbdev "usb1" "USB1" "ns-k330:green:usb1" "1-1"
+ ucidef_set_led_usbdev "usb2" "USB2" "ns-k330:green:usb2" "1-2"
+ ;;
+fi
+
+ucidef_commit_leds
+
+exit 0