mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
4cbf5601f9
The get_status_led() function was removed due to the convertion to dts
alias based status led.
Since we don't need the boardname any longer, the functions.sh include
isn't required any more.
Fixes: c9c4b2116c
("ramips: Use dts alias based status led")
Signed-off-by: Mathias Kresin <dev@kresin.me>
25 lines
331 B
Bash
25 lines
331 B
Bash
#!/bin/sh
|
|
# Copyright (C) 2010-2013 OpenWrt.org
|
|
|
|
. /lib/functions/leds.sh
|
|
|
|
status_led="$(get_dt_led status)"
|
|
|
|
set_state() {
|
|
case "$1" in
|
|
preinit)
|
|
status_led_blink_preinit
|
|
;;
|
|
failsafe)
|
|
status_led_blink_failsafe
|
|
;;
|
|
upgrade | \
|
|
preinit_regular)
|
|
status_led_blink_preinit_regular
|
|
;;
|
|
done)
|
|
status_led_on
|
|
;;
|
|
esac
|
|
}
|