aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dickinson <crazycshore@gmail.com>2010-05-30 03:21:00 +0000
committerDaniel Dickinson <crazycshore@gmail.com>2010-05-30 03:21:00 +0000
commitba2b75f71061973e245b550c54ad4123b1f91968 (patch)
tree01df46892abaaaf5c1b1f50085028805bed625f8
parent6bccc41f6cc3961ce5a52d48c5833df2d0677ff3 (diff)
downloadupstream-ba2b75f71061973e245b550c54ad4123b1f91968.tar.gz
upstream-ba2b75f71061973e245b550c54ad4123b1f91968.tar.bz2
upstream-ba2b75f71061973e245b550c54ad4123b1f91968.zip
ramips: Added preinit scriptlet to set vars based on cpuinfo during preinit_main. This fixes a bug in which the vars were not set due to /proc not being mounted when ramips.sh was sourced
SVN-Revision: 21635
-rw-r--r--target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh7
1 files changed, 7 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
new file mode 100644
index 0000000000..e76418dad0
--- /dev/null
+++ b/target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+do_ramips() {
+ . /lib/ramips.sh
+}
+
+boot_hook_add preinit_main do_ramips