treewide: use the generic board_name function
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / preinit / 05_set_preinit_iface_ar71xx
index d677599d8c6380d9920e95abc9fb4b92cc0cec29..3a98cdccf1aa5bf04d5da263731ec2f92f0286f6 100644 (file)
@@ -4,10 +4,10 @@
 # Copyright (C) 2009 OpenWrt.org
 #
 
-. /lib/ar71xx.sh
-
 set_preinit_iface() {
-       case $(ar71xx_board_name) in
+       . /lib/functions.sh
+
+       case $(board_name) in
        alfa-ap96 |\
        alfa-nx |\
        ap135-020 |\