diff options
author | Daniel Dickinson <crazycshore@gmail.com> | 2010-05-30 03:21:00 +0000 |
---|---|---|
committer | Daniel Dickinson <crazycshore@gmail.com> | 2010-05-30 03:21:00 +0000 |
commit | ba2b75f71061973e245b550c54ad4123b1f91968 (patch) | |
tree | 01df46892abaaaf5c1b1f50085028805bed625f8 /target/linux/ramips/base-files/lib | |
parent | 6bccc41f6cc3961ce5a52d48c5833df2d0677ff3 (diff) | |
download | master-31e0f0ae-ba2b75f71061973e245b550c54ad4123b1f91968.tar.gz master-31e0f0ae-ba2b75f71061973e245b550c54ad4123b1f91968.tar.bz2 master-31e0f0ae-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
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r-- | target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh | 7 |
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 |