Commit Graph

6 Commits (64f4c3ef357815e5d8c780a0d02924b9176db794)

Author SHA1 Message Date
Mathias Kresin ac3e05c5d7 treewide: populate boardname and model earlier
For targets using the generic board detection and board specific
settings in diag.sh, the board name is still unset at the time the
set_state() provided by diag.sh is called by 10_indicate_preinit.

Change the execution order to ensure the boardname is populated before
required the first time. Do the target specific board detection as
early as possible, directly followed by the generic one to allow a
seamless switch to the generic function for populating /tmp/sysinfo/.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years ago
John Crispin 67f5f188b1 base-files: input/button drivers get loaded before preinit by procd
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37000
11 years ago
Daniel Dickinson abb91e135f 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
14 years ago
Daniel Dickinson 50a5ef1200 adm5120: Fixed name of preinit_iface scriptlet
SVN-Revision: 21632
14 years ago
Felix Fietkau 0e84ed29ea preinit: fix mixup between led and reset button enable on some platforms (thx, cshore)
SVN-Revision: 19370
15 years ago
Felix Fietkau 56bc02a305 add preinit modularization work by Daniel Dickinson (cshore)
SVN-Revision: 19331
15 years ago