diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-05 10:12:53 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-05 10:12:53 +0000 |
commit | 5c105d9f3fd086aff195d3849dcf847d6b0bd927 (patch) | |
tree | 1229a11f725bfa58aa7c57a76898553bb5f6654a /target/linux/mcs814x/base-files/etc/uci-defaults | |
download | openwrt-5c105d9f3fd086aff195d3849dcf847d6b0bd927.tar.gz openwrt-5c105d9f3fd086aff195d3849dcf847d6b0bd927.zip |
branch Attitude Adjustment
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mcs814x/base-files/etc/uci-defaults')
-rw-r--r-- | target/linux/mcs814x/base-files/etc/uci-defaults/leds | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/mcs814x/base-files/etc/uci-defaults/leds b/target/linux/mcs814x/base-files/etc/uci-defaults/leds new file mode 100644 index 000000000..8ab8b4e76 --- /dev/null +++ b/target/linux/mcs814x/base-files/etc/uci-defaults/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 |