treewide: use only board_name function to get name
[openwrt/openwrt.git] / target / linux / brcm47xx / base-files / etc / board.d / 01_detect
index 357cc7f22432d2803c464de1176197ea2c2182cf..f1022dc13a744a258cfbb1e7634071f323c87715 100755 (executable)
@@ -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)"