diff options
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh | 9 |
1 files changed, 9 insertions, 0 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 new file mode 100644 index 0000000000..03706ffe1a --- /dev/null +++ b/target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh @@ -0,0 +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 +} + +boot_hook_add preinit_main do_at91 |