ramips: remove stale get_status_led call
authorMathias Kresin <dev@kresin.me>
Mon, 23 Jul 2018 05:57:45 +0000 (07:57 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:32:20 +0000 (17:32 +0100)
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: c9c4b2116c09 ("ramips: Use dts alias based status led")
Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 4cbf5601f9621d0f8973237f3133b821f472845c)

target/linux/ramips/base-files/etc/diag.sh

index 6df243e39399b29a3b9df11e6360bd3df679be7a..d4318b61a740cfd5bd203f28fdb0da48c57271d7 100644 (file)
@@ -1,14 +1,11 @@
 #!/bin/sh
 # Copyright (C) 2010-2013 OpenWrt.org
 
-. /lib/functions.sh
 . /lib/functions/leds.sh
 
 status_led="$(get_dt_led status)"
 
 set_state() {
-       get_status_led $1
-
        case "$1" in
        preinit)
                status_led_blink_preinit