treewide: use the generic board_name function
[openwrt/staging/hauke.git] / target / linux / apm821xx / base-files / etc / diag.sh
index 3e480f1fe4363415c8e379efc8660b256199d293..eb9b04b52511f36c49425a9bf54ec716cdd754a9 100755 (executable)
@@ -1,10 +1,10 @@
 #!/bin/sh
 
+. /lib/functions.sh
 . /lib/functions/leds.sh
-. /lib/apm821xx.sh
 
 get_status_led() {
-       local board=$(apm821xx_board_name)
+       local board=$(board_name)
 
        case $board in
        mbl|\