base-files: unify get_dt_led helper function
[openwrt/openwrt.git] / target / linux / lantiq / base-files / etc / diag.sh
index 70ed25cb807c6c27785adae6b74d5a6b705c68ec..4fb47bd2731828316cdadb7fe930ef4e353d7571 100644 (file)
@@ -2,14 +2,13 @@
 # Copyright (C) 2010-2015 OpenWrt.org
 
 . /lib/functions/leds.sh
-. /lib/functions/lantiq.sh
 
-boot="$(lantiq_get_dt_led boot)"
-failsafe="$(lantiq_get_dt_led failsafe)"
-running="$(lantiq_get_dt_led running)"
+boot="$(get_dt_led boot)"
+failsafe="$(get_dt_led failsafe)"
+running="$(get_dt_led running)"
 
 set_state() {
-    status_led="$boot"
+       status_led="$boot"
 
        case "$1" in
        preinit)