diff options
Diffstat (limited to 'target/linux/lantiq/base-files/lib')
-rwxr-xr-x | target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh | 2 | ||||
-rwxr-xr-x | target/linux/lantiq/base-files/lib/upgrade/platform.sh | 2 |
2 files changed, 2 insertions, 2 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" diff --git a/target/linux/lantiq/base-files/lib/upgrade/platform.sh b/target/linux/lantiq/base-files/lib/upgrade/platform.sh index 9158fa742f..77b3868dc0 100755 --- a/target/linux/lantiq/base-files/lib/upgrade/platform.sh +++ b/target/linux/lantiq/base-files/lib/upgrade/platform.sh @@ -9,7 +9,7 @@ platform_pre_upgrade() { local board=$(board_name) case "$board" in - BTHOMEHUBV2B|BTHOMEHUBV3A|BTHOMEHUBV5A|P2812HNUF* ) + bt,homehub-v2b|bt,homehub-v3a|bt,homehub-v5a|zyxel,p-2812hnu-f1|zyxel,p-2812hnu-f3) nand_do_upgrade $1 ;; esac |