aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx6
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/imx6')
-rwxr-xr-xtarget/linux/imx6/base-files/lib/imx6.sh1
-rw-r--r--target/linux/imx6/base-files/lib/preinit/01_sysinfo9
2 files changed, 9 insertions, 1 deletions
diff --git a/target/linux/imx6/base-files/lib/imx6.sh b/target/linux/imx6/base-files/lib/imx6.sh
index 94adf1ccb3..385c54f9f9 100755
--- a/target/linux/imx6/base-files/lib/imx6.sh
+++ b/target/linux/imx6/base-files/lib/imx6.sh
@@ -75,7 +75,6 @@ imx6_board_detect() {
imx6_board_name() {
local name
- [ -f /tmp/sysinfo/board_name ] || imx6_board_detect
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
[ -z "$name" ] && name="unknown"
diff --git a/target/linux/imx6/base-files/lib/preinit/01_sysinfo b/target/linux/imx6/base-files/lib/preinit/01_sysinfo
new file mode 100644
index 0000000000..0a91aed010
--- /dev/null
+++ b/target/linux/imx6/base-files/lib/preinit/01_sysinfo
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+do_sysinfo_imx6() {
+ . /lib/imx6.sh
+
+ imx6_board_detect
+}
+
+boot_hook_add preinit_main do_sysinfo_imx6