treewide: use the generic board_name function
[openwrt/staging/mkresin.git] / target / linux / apm821xx / base-files / lib / preinit / 05_set_iface_mac_apm821xx
index 750af042e19fc646b65277895bbcdd1a4fa55ba1..ec540feb846568819c6459fd5adc03e4fc9e9c5b 100644 (file)
@@ -1,9 +1,9 @@
 #!/bin/sh
 
-. /lib/apm821xx.sh
-
 preinit_set_mac_address() {
-       case $(apm821xx_board_name) in
+       . /lib/functions.sh
+
+       case $(board_name) in
                mr24|\
                mx60)
                        mac_lan=$(mtd_get_mac_binary_ubi board-config 102)