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/brcm47xx/base-files/lib/upgrade/platform.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'target/linux/brcm47xx/base-files') diff --git a/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh b/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh index cf05a847ee..dfd4e97ed2 100644 --- a/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh @@ -6,12 +6,8 @@ get_magic_long_at() { dd if="$1" skip=$2 bs=1 count=4 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"' } -platform_machine() { - grep "machine" /proc/cpuinfo | sed "s/.*:[ \t]*//" -} - platform_expected_image() { - local machine=$(platform_machine) + local machine=$(board_name) case "$machine" in "Netgear WGR614 V8") echo "chk U12H072T00_NETGEAR"; return;; -- cgit v1.2.3