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>
This commit is contained in:
Mathias Kresin
2017-04-08 11:40:07 +02:00
parent 63d7f7fc92
commit 26dc65b126
60 changed files with 60 additions and 60 deletions

View File

@@ -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/"