aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-04-08 11:40:07 +0200
committerMathias Kresin <dev@kresin.me>2017-12-16 23:33:56 +0100
commit26dc65b126dfa6b63a9df725069bf331a3e8577a (patch)
treea47de1d50da6d75d8114bb5a0b3aa5377ce18c9d /target/linux/lantiq/base-files
parent63d7f7fc925ebfa3aba7e65837676d2ba85c1c69 (diff)
downloadupstream-26dc65b126dfa6b63a9df725069bf331a3e8577a.tar.gz
upstream-26dc65b126dfa6b63a9df725069bf331a3e8577a.tar.bz2
upstream-26dc65b126dfa6b63a9df725069bf331a3e8577a.zip
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>
Diffstat (limited to 'target/linux/lantiq/base-files')
-rwxr-xr-xtarget/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh2
1 files changed, 1 insertions, 1 deletions
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/"