From 893b30dab672a2b0baf785c1e87ee605f08ca322 Mon Sep 17 00:00:00 2001 From: cshore Date: Sun, 30 May 2010 03:21:00 +0000 Subject: 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 --- target/linux/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 (limited to 'target/linux/ramips') 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 000000000..e76418dad --- /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 -- cgit v1.2.3