diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-18 12:42:53 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-18 12:42:53 +0000 |
commit | 3a2cccda2eb45c6b55ef33c73a4af2c88935f383 (patch) | |
tree | 42f8f7a8c928a04176ec598da4684b0d778e216d /target/linux/mcs814x/base-files/etc/uci-defaults/01_leds | |
parent | 0de21d9747688e37cc9a9fb92c41abcdde9ef09f (diff) | |
download | mtk-20170518-3a2cccda2eb45c6b55ef33c73a4af2c88935f383.zip mtk-20170518-3a2cccda2eb45c6b55ef33c73a4af2c88935f383.tar.gz mtk-20170518-3a2cccda2eb45c6b55ef33c73a4af2c88935f383.tar.bz2 |
all targets: use numerically prefixed uci-defaults file names to better control order of execution
SVN-Revision: 35217
Diffstat (limited to 'target/linux/mcs814x/base-files/etc/uci-defaults/01_leds')
-rw-r--r-- | target/linux/mcs814x/base-files/etc/uci-defaults/01_leds | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/mcs814x/base-files/etc/uci-defaults/01_leds b/target/linux/mcs814x/base-files/etc/uci-defaults/01_leds new file mode 100644 index 0000000..8ab8b4e --- /dev/null +++ b/target/linux/mcs814x/base-files/etc/uci-defaults/01_leds @@ -0,0 +1,26 @@ +#!/bin/sh +# +# Copyright (C) 2012 OpenWrt.org +# + +. /lib/functions/uci-defaults.sh +. /lib/mcs814x.sh + +board=$(mcs814x_board_name) + +case "$board" in +dlan-usb-extender) + ucidef_set_led_usbdev "usb" "USB" "dlan-usb-extender:green:usb" "1-1" + ;; +rbt-832) + ucidef_set_led_usbdev "usb1" "USB1" "rbt-832:red:usb0" "1-1" + ucidef_set_led_usbdev "usb2" "USB2" "rbt-832:red:usb1" "1-2" + ucidef_set_led_usbdev "usb3" "USB3" "rbt-832:red:usb2" "1-3" + ucidef_set_led_usbdev "usb4" "USB4" "rbt-832:red:usb3" "1-4" + ucidef_set_led_netdev "eth" "eth" "rbt-832:red:ethernet" "eth0" + ;; +esac + +ucidef_commit_leds + +exit 0 |