aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh b/target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh
index 03706ffe1a..5c981016a4 100644
--- a/target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh
+++ b/target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh
@@ -1,9 +1,9 @@
#!/bin/sh
do_at91() {
- [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
- echo $(strings /proc/device-tree/compatible | head -1) > /tmp/sysinfo/board_name
- echo $(cat /proc/device-tree/model) > /tmp/sysinfo/model
+ . /lib/at91.sh
+
+ at91_board_detect
}
boot_hook_add preinit_main do_at91