diff options
author | Mathias Kresin <dev@kresin.me> | 2017-04-07 18:09:08 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-07-15 23:13:34 +0200 |
commit | ac3e05c5d757334944fbf1f14583164cd1d69172 (patch) | |
tree | 3eb292a1b367affc29977ff0f2b59801ab3fdf28 /target/linux/brcm2708/base-files/lib/preinit/01_preinit_do_brcm2708.sh | |
parent | c7f8bcede6be73d0c07e058d57b55e4efc746440 (diff) | |
download | upstream-ac3e05c5d757334944fbf1f14583164cd1d69172.tar.gz upstream-ac3e05c5d757334944fbf1f14583164cd1d69172.tar.bz2 upstream-ac3e05c5d757334944fbf1f14583164cd1d69172.zip |
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>
Diffstat (limited to 'target/linux/brcm2708/base-files/lib/preinit/01_preinit_do_brcm2708.sh')
-rw-r--r-- | target/linux/brcm2708/base-files/lib/preinit/01_preinit_do_brcm2708.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/brcm2708/base-files/lib/preinit/01_preinit_do_brcm2708.sh b/target/linux/brcm2708/base-files/lib/preinit/01_preinit_do_brcm2708.sh new file mode 100644 index 0000000000..294364848d --- /dev/null +++ b/target/linux/brcm2708/base-files/lib/preinit/01_preinit_do_brcm2708.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Copyright (C) 2015 OpenWrt.org + +do_brcm2708() { + . /lib/brcm2708.sh + + brcm2708_detect +} + +boot_hook_add preinit_main do_brcm2708 |