treewide: use the generic board_name function
[openwrt/openwrt.git] / target / linux / mvebu / base-files / etc / diag.sh
index 622c7d9604f867b17b809a559db47ffd5f5652d9..4a3f54ed2cd76cfb6099ef52959c7159efeb14d3 100644 (file)
@@ -2,11 +2,11 @@
 # Copyright (C) 2014-2016 OpenWrt.org
 # Copyright (C) 2016 LEDE-Project.org
 
+. /lib/functions.sh
 . /lib/functions/leds.sh
-. /lib/mvebu.sh
 
 get_status_led() {
-       case $(mvebu_board_name) in
+       case $(board_name) in
        armada-385-linksys-caiman)
                status_led="caiman:white:power"
                ;;