From f12a32630ff52b5e13397f64e9fb31708e97fb60 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Fri, 12 May 2017 22:36:07 +0200 Subject: treewide: use the generic board_name function Use the generic function instead ot the target specific ones. Signed-off-by: Mathias Kresin --- target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx') diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx index 277287d383..df653f2e48 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx +++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx @@ -2,8 +2,6 @@ # Copyright (C) 2009 OpenWrt.org # -. /lib/ar71xx.sh - fetch_mac_from_mtd() { local mtd_part=$1 local lan_env=$2 @@ -21,7 +19,9 @@ fetch_mac_from_mtd() { } preinit_set_mac_address() { - case $(ar71xx_board_name) in + . /lib/functions.sh + + case $(board_name) in c-55|\ c-60) mac_lan=$(mtd_get_mac_binary art 0) -- cgit v1.2.3