Openwrt/target/linux/brcm2708/base-files/etc/diag.sh
John Crispin dc72499b53 brcm2708: add board detection and LED support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 44447
2015-02-14 20:48:08 +00:00

26 lines
302 B
Bash

#!/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
}