treewide: use the generic board_name function
[openwrt/openwrt.git] / target / linux / sunxi / base-files / etc / board.d / 02_network
index 2b18748c6f08fcfbd57b12de626396b7591b82a5..782f3ec0d344fff0ae13aaad0d2f3bc5e4e6f7a6 100755 (executable)
@@ -3,12 +3,11 @@
 # Copyright (C) 2013-2015 OpenWrt.org
 #
 
-. /lib/sunxi.sh
 . /lib/functions/uci-defaults.sh
 
 board_config_update
 
-case "$( sunxi_board_name )" in
+case "$(board_name)" in
 "olimex,a20-olinuxino-micro")
        ucidef_set_interface_lan 'wlan0'
        ;;