treewide: use the generic board_name function
[openwrt/staging/mkresin.git] / target / linux / mxs / base-files / etc / diag.sh
index 11b1f75fae337c29bf0b0470d1861b1a7ffa3aa2..3b05f6da5f9b6730e7e023b34be086c4602df80a 100644 (file)
@@ -1,11 +1,11 @@
 #!/bin/sh
 # Copyright (C) 2013-2014 OpenWrt.org
 
+. /lib/functions.sh
 . /lib/functions/leds.sh
-. /lib/mxs.sh
 
 get_status_led() {
-       case $(mxs_board_name) in
+       case $(board_name) in
        duckbill)
                status_led="duckbill:green:status"
                ;;