summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorcshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-05-30 03:21:00 +0000
committercshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-05-30 03:21:00 +0000
commit893b30dab672a2b0baf785c1e87ee605f08ca322 (patch)
tree45cdd480313ebe4fa5c7bca779f0156b7b02b4e9 /target/linux
parentd1d038f9859a4a6ad7c319dfff87e3ec86afd4b1 (diff)
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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21635 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-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