projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: use only board_name function to get name
[openwrt/openwrt.git]
/
target
/
linux
/
brcm47xx
/
base-files
/
etc
/
board.d
/
01_detect
diff --git
a/target/linux/brcm47xx/base-files/etc/board.d/01_detect
b/target/linux/brcm47xx/base-files/etc/board.d/01_detect
index 357cc7f22432d2803c464de1176197ea2c2182cf..f1022dc13a744a258cfbb1e7634071f323c87715 100755
(executable)
--- a/
target/linux/brcm47xx/base-files/etc/board.d/01_detect
+++ b/
target/linux/brcm47xx/base-files/etc/board.d/01_detect
@@
-175,7
+175,7
@@
detect_by_model() {
}
-model="$(
sed -ne 's/^machine[ \t]*: //p' /proc/cpuinfo
)"
+model="$(
board_name
)"
boardtype="$(nvram get boardtype)"
boardnum="$(nvram get boardnum)"