From: Daniel Dickinson Date: Sun, 30 May 2010 03:21:00 +0000 (+0000) Subject: ramips: Added preinit scriptlet to set vars based on cpuinfo during preinit_main... X-Git-Tag: reboot~19758 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ba2b75f71061973e245b550c54ad4123b1f91968;p=openwrt%2Fstaging%2Flynxis.git 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 --- 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