diff options
Diffstat (limited to 'target/linux/lantiq/base-files/lib/preinit')
-rwxr-xr-x | target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh | 2 |
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 aef946036e..bbbac97bae 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 @@ -1,7 +1,7 @@ #!/bin/sh lantiq_board_detect() { - name=`grep "^machine" /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/\(.*\) - .*/\1/g"` + name="$(strings /proc/device-tree/compatible | head -1)" model=`grep "^machine" /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/.* - \(.*\)/\1/g"` [ -z "$name" ] && name="unknown" [ -z "$model" ] && model="unknown" |