From: Daniel Dickinson Date: Sun, 30 May 2010 03:20:38 +0000 (+0000) Subject: adm5120: Added preinit script to set vars based on cpuinfo during preinit main; This... X-Git-Tag: reboot~19760 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=abb91e135f11c3b5cdf41085bce86b8cc7dce56d;p=oweals%2Fopenwrt.git adm5120: Added preinit script to set vars based on cpuinfo during preinit main; This fixes a bug in which the per-board vars were not set due to cpuinfo not being mounted when the adm5120.sh was run SVN-Revision: 21633 --- diff --git a/target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh b/target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh new file mode 100644 index 0000000000..4fca1e71b2 --- /dev/null +++ b/target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +do_adm5120() { + . /lib/adm5120.sh +} + +boot_hook_add preinit_main do_adm5120