treewide: use the generic board_name function
[openwrt/openwrt.git] / target / linux / brcm63xx / base-files / etc / diag.sh
index b90b5907aa59a06640f400f9cdc0843a751b6e0d..24939a9cc1090f5c15c2fbd13f052f3281ffda48 100644 (file)
@@ -1,11 +1,11 @@
 #!/bin/sh
 # Copyright (C) 2007-2013 OpenWrt.org
 
+. /lib/functions.sh
 . /lib/functions/leds.sh
-. /lib/brcm63xx.sh
 
 set_state() {
-       case "$(brcm63xx_board_name)" in
+       case "$(board_name)" in
        a4001n1)
                status_led="A4001N1:green:power"
                ;;