2
0
forked from Ivasoft/openwrt

treewide: use the generic board_name function

Use the generic function instead ot the target specific ones.

Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
Mathias Kresin
2017-05-12 22:36:07 +02:00
parent ced05ca9e0
commit f12a32630f
94 changed files with 153 additions and 260 deletions

View File

@@ -13,9 +13,6 @@ ath9k_eeprom_extract() {
local count=$3
local mtd
. /lib/functions.sh
. /lib/functions/system.sh
mtd=$(find_mtd_chardev $part)
[ -n "$mtd" ] || \
ath9k_eeprom_die "no mtd device found for partition $part"
@@ -29,9 +26,6 @@ tpl_set_wireless_mac()
local offset=$1
local mac
. /lib/functions.sh
. /lib/functions/system.sh
mac=$(mtd_get_mac_binary u-boot 326656)
mac=$(macaddr_add $mac $offset)
@@ -40,9 +34,10 @@ tpl_set_wireless_mac()
[ -e $FW_FILE ] && exit 0
. /lib/mpc85xx.sh
. /lib/functions.sh
. /lib/functions/system.sh
board=$(mpc85xx_board_name)
board=$(board_name)
case "$FIRMWARE" in
"pci_wmac0.eeprom")