openwrtv4/target/linux/ramips/base-files/etc/diag.sh
Mathias Kresin 4cbf5601f9 ramips: remove stale get_status_led call
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>
2018-07-25 08:57:17 +02:00

24 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
}