aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-09-26 06:45:11 +0200
committerRafał Miłecki <rafal@milecki.pl>2019-09-26 06:53:16 +0200
commit9200b4a6a085e145696cba9056c4f536014536c0 (patch)
treeb0b3a4ce11f863d41fc421bacb866d6df3f6cb29 /target
parentc7cdbf29c050cd8490a5a920235086d8e2ef54b9 (diff)
downloadupstream-9200b4a6a085e145696cba9056c4f536014536c0.tar.gz
upstream-9200b4a6a085e145696cba9056c4f536014536c0.tar.bz2
upstream-9200b4a6a085e145696cba9056c4f536014536c0.zip
brcm47xx: sysupgrade: fix device model detection
$(board_name) was providing content on "boardtype" (and optionally "boardnum") NVRAM values. That function requires & expects more specific and detailed model name extracted from the /proc/cpuinfo. Fixes: f12a32630ff5 ("treewide: use the generic board_name function") Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target')
-rw-r--r--target/linux/brcm47xx/base-files/lib/upgrade/platform.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh b/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh
index 3e1b834327..d536373bb1 100644
--- a/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh
@@ -15,9 +15,9 @@ get_le_long_at() {
}
platform_expected_image() {
- local machine=$(board_name)
+ local model="$(cat /tmp/sysinfo/model)"
- case "$machine" in
+ case "$model" in
"Netgear WGR614 V8") echo "chk U12H072T00_NETGEAR"; return;;
"Netgear WGR614 V9") echo "chk U12H094T00_NETGEAR"; return;;
"Netgear WGR614 V10") echo "chk U12H139T01_NETGEAR"; return;;