From 26dc65b126dfa6b63a9df725069bf331a3e8577a Mon Sep 17 00:00:00 2001
From: Mathias Kresin <dev@kresin.me>
Date: Sat, 8 Apr 2017 11:40:07 +0200
Subject: lantiq: remove the former board name from device tree model

Remove the former used board name from the device model property and
use the model name as it is.

Signed-off-by: Mathias Kresin <dev@kresin.me>
---
 target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'target/linux/lantiq/base-files')

diff --git a/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh b/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh
index bbbac97bae..a40185ad3c 100755
--- a/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh
+++ b/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh
@@ -2,7 +2,7 @@
 
 lantiq_board_detect() {
 	name="$(strings /proc/device-tree/compatible | head -1)"
-	model=`grep "^machine" /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/.* - \(.*\)/\1/g"`
+	model="$(cat /proc/device-tree/model)"
 	[ -z "$name" ] && name="unknown"
 	[ -z "$model" ] && model="unknown"
 	[ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
-- 
cgit v1.2.3