aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorDaniel Dickinson <daniel@cshore.neomailbox.net>2010-05-30 03:20:38 +0000
committerDaniel Dickinson <daniel@cshore.neomailbox.net>2010-05-30 03:20:38 +0000
commitf165cba5c19876a81d428c7a35fefc6f02236ad8 (patch)
tree479a2c4bd84d4155929afacfcbf8ff6a8353925d /target
parentf3d7a5138d77d66e7e823669e6fa205c06271890 (diff)
downloadmaster-187ad058-f165cba5c19876a81d428c7a35fefc6f02236ad8.tar.gz
master-187ad058-f165cba5c19876a81d428c7a35fefc6f02236ad8.tar.bz2
master-187ad058-f165cba5c19876a81d428c7a35fefc6f02236ad8.zip
adm5120: Added preinit script to set vars based on cpuinfo during preinit main; This fixes a bug in which the per-board vars were not set due to cpuinfo not being mounted when the adm5120.sh was run
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21633 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh b/target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh
new file mode 100644
index 0000000000..4fca1e71b2
--- /dev/null
+++ b/target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+do_adm5120() {
+ . /lib/adm5120.sh
+}
+
+boot_hook_add preinit_main do_adm5120