summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorDaniel Dickinson <crazycshore@gmail.com>2010-05-30 03:20:49 +0000
committerDaniel Dickinson <crazycshore@gmail.com>2010-05-30 03:20:49 +0000
commit6bccc41f6cc3961ce5a52d48c5833df2d0677ff3 (patch)
tree6a8611612e52e389ce34703a90085d970a33d8ff /target
parentabb91e135f11c3b5cdf41085bce86b8cc7dce56d (diff)
downloadmtk-20170518-6bccc41f6cc3961ce5a52d48c5833df2d0677ff3.zip
mtk-20170518-6bccc41f6cc3961ce5a52d48c5833df2d0677ff3.tar.gz
mtk-20170518-6bccc41f6cc3961ce5a52d48c5833df2d0677ff3.tar.bz2
ar71xx: 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 ar71xx.sh was sourced
SVN-Revision: 21634
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/base-files/lib/preinit/03_preinit_do_ar71xx.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/lib/preinit/03_preinit_do_ar71xx.sh b/target/linux/ar71xx/base-files/lib/preinit/03_preinit_do_ar71xx.sh
new file mode 100644
index 0000000..3676489
--- /dev/null
+++ b/target/linux/ar71xx/base-files/lib/preinit/03_preinit_do_ar71xx.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+do_ar71xx() {
+ . /lib/ar71xx.sh
+}
+
+boot_hook_add preinit_main do_ar71xx