diff options
author | Daniel Dickinson <daniel@cshore.neomailbox.net> | 2010-05-30 03:21:00 +0000 |
---|---|---|
committer | Daniel Dickinson <daniel@cshore.neomailbox.net> | 2010-05-30 03:21:00 +0000 |
commit | fe3f850ad00d3e7973d0482e57a60125a63a5106 (patch) | |
tree | 45cdd480313ebe4fa5c7bca779f0156b7b02b4e9 /target/linux/ramips | |
parent | 9de82160b12578f30fd9a9645a1125123f515489 (diff) | |
download | upstream-fe3f850ad00d3e7973d0482e57a60125a63a5106.tar.gz upstream-fe3f850ad00d3e7973d0482e57a60125a63a5106.tar.bz2 upstream-fe3f850ad00d3e7973d0482e57a60125a63a5106.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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21635 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips')
-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 |