treewide: use the generic board_name function
[openwrt/staging/chunkeey.git] / target / linux / kirkwood / base-files / etc / diag.sh
index 64650850d60e2660528c5a8fa39d33bb1833b0ed..71a1639c2a6da6d84d3a98bb2bbbae361634e0e5 100755 (executable)
@@ -1,11 +1,11 @@
 #!/bin/sh
 # Copyright (C) 2014 OpenWrt.org
 
+. /lib/functions.sh
 . /lib/functions/leds.sh
-. /lib/kirkwood.sh
 
 get_status_led() {
-       case $(kirkwood_board_name) in
+       case $(board_name) in
        dockstar|\
        goflexhome|\
        goflexnet)