From ba2b75f71061973e245b550c54ad4123b1f91968 Mon Sep 17 00:00:00 2001 From: Daniel Dickinson Date: Sun, 30 May 2010 03:21:00 +0000 Subject: [PATCH] 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 --- .../ramips/base-files/lib/preinit/03_preinit_do_ramips.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh 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 -- 2.25.1