10_sysinfo 250 B

1234567891011
  1. get_model_rb532() {
  2. grep system\ type /proc/cpuinfo | awk -F ": " '{print $2}'
  3. }
  4. do_sysinfo_rb532() {
  5. mkdir -p /tmp/sysinfo
  6. echo rb532 > /tmp/sysinfo/board_name
  7. get_model_rb532 > /tmp/sysinfo/model
  8. }
  9. boot_hook_add preinit_main do_sysinfo_rb532