aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorDaniel Dickinson <daniel@cshore.neomailbox.net>2010-05-30 03:20:49 +0000
committerDaniel Dickinson <daniel@cshore.neomailbox.net>2010-05-30 03:20:49 +0000
commit9de82160b12578f30fd9a9645a1125123f515489 (patch)
treeac9b20e50fccd9b1f3cba3efbee4e483427c0e27 /target
parentf165cba5c19876a81d428c7a35fefc6f02236ad8 (diff)
downloadmaster-187ad058-9de82160b12578f30fd9a9645a1125123f515489.tar.gz
master-187ad058-9de82160b12578f30fd9a9645a1125123f515489.tar.bz2
master-187ad058-9de82160b12578f30fd9a9645a1125123f515489.zip
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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21634 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 0000000000..367648929b
--- /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