diff options
author | John Crispin <blogic@openwrt.org> | 2015-02-14 20:48:08 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-02-14 20:48:08 +0000 |
commit | ea8a989f3d06455b23999b283bdeb997f52f5ba3 (patch) | |
tree | 2ed311506be4561d689e028a61447fd5f2212f60 /target/linux/brcm2708/base-files/etc | |
parent | 60759662cbc7fbf6f77066e118daa30ba22917ed (diff) | |
download | upstream-ea8a989f3d06455b23999b283bdeb997f52f5ba3.tar.gz upstream-ea8a989f3d06455b23999b283bdeb997f52f5ba3.tar.bz2 upstream-ea8a989f3d06455b23999b283bdeb997f52f5ba3.zip |
brcm2708: add board detection and LED support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44447 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm2708/base-files/etc')
-rw-r--r-- | target/linux/brcm2708/base-files/etc/diag.sh | 25 | ||||
-rw-r--r-- | target/linux/brcm2708/base-files/etc/uci-defaults/01_leds | 11 |
2 files changed, 36 insertions, 0 deletions
diff --git a/target/linux/brcm2708/base-files/etc/diag.sh b/target/linux/brcm2708/base-files/etc/diag.sh new file mode 100644 index 0000000000..55e68b1a00 --- /dev/null +++ b/target/linux/brcm2708/base-files/etc/diag.sh @@ -0,0 +1,25 @@ +#!/bin/sh +# +# Copyright (C) 2015 OpenWrt.org +# + +. /lib/functions/leds.sh + +set_state() { + status_led="led0" + + case "$1" in + preinit) + status_led_blink_preinit + ;; + failsafe) + status_led_blink_failsafe + ;; + preinit_regular) + status_led_blink_preinit_regular + ;; + done) + status_led_on + ;; + esac +} diff --git a/target/linux/brcm2708/base-files/etc/uci-defaults/01_leds b/target/linux/brcm2708/base-files/etc/uci-defaults/01_leds new file mode 100644 index 0000000000..ad52c689e9 --- /dev/null +++ b/target/linux/brcm2708/base-files/etc/uci-defaults/01_leds @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Copyright (C) 2015 OpenWrt.org +# + +. /lib/functions/uci-defaults.sh + +ucidef_set_led_mmc "mmc" "MMC" "led0" "mmc0" +ucidef_commit_leds + +exit 0 |