aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib/preinit
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-03-03 12:47:02 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-03-03 12:47:02 +0000
commit367ab0a40fede68d1a8e3299f638bb3544444f26 (patch)
treea2bef2e5836a86f34e71a7dcae92884a4567fa09 /target/linux/ramips/base-files/lib/preinit
parent1ba2272ca5449c6f38728ff8870bf07aca440f5c (diff)
downloadupstream-367ab0a40fede68d1a8e3299f638bb3544444f26.tar.gz
upstream-367ab0a40fede68d1a8e3299f638bb3544444f26.tar.bz2
upstream-367ab0a40fede68d1a8e3299f638bb3544444f26.zip
ramips: enhance user-space board detection
Similar to ar71xx, detect only once and cache the strings in /tmp/sysinfo/model and /tmp/sysinfo/boardname. Signed-off-by: Daniel Golle <dgolle@allnet.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35850
Diffstat (limited to 'target/linux/ramips/base-files/lib/preinit')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh b/target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh
index e76418dad0..31ef5f8146 100644
--- a/target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh
+++ b/target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh
@@ -2,6 +2,8 @@
do_ramips() {
. /lib/ramips.sh
+
+ ramips_board_detect
}
boot_hook_add preinit_main do_ramips