1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-20 02:12:52 +02:00

bcm63xx: Allow 'colored' power leds.

Since some devices have more than one power led, they might be separated by
their color in the name. To also allow them to be on after leaving preinit,
set any status led starting with 'power' to on instead of only those with
the exact name of 'power'.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24187 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
cshore 2010-11-28 22:04:30 +00:00
parent 74fd46691e
commit 36faccabad

View File

@ -61,7 +61,7 @@ set_state() {
status_led_set_timer 50 50 status_led_set_timer 50 50
;; ;;
done) done)
if [ "$status_led" = "power" ]; then if [ "${status_led#power}" != "$status_led" ]; then
status_led_on status_led_on
else else
status_led_off status_led_off