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/ipq806x/base-files/lib/upgrade/platform.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'target/linux/ipq806x/base-files/lib') diff --git a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh index 246361bbf6..7d8b178339 100644 --- a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh +++ b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh @@ -1,5 +1,3 @@ -. /lib/ipq806x.sh - PART_NAME=firmware REQUIRE_IMAGE_METADATA=1 @@ -11,9 +9,7 @@ platform_check_image() { } platform_do_upgrade() { - local board=$(ipq806x_board_name) - - case "$board" in + case "$(board_name)" in ap148 |\ ap-dk04.1-c1 |\ d7800 |\ @@ -43,9 +39,7 @@ platform_do_upgrade() { } platform_nand_pre_upgrade() { - local board=$(ipq806x_board_name) - - case "$board" in + case "$(board_name)" in nbg6817) zyxel_do_upgrade "$1" ;; -- cgit v1.2.3