12 lines
250 B
Text
12 lines
250 B
Text
|
get_model_rb532() {
|
||
|
grep system\ type /proc/cpuinfo | awk -F ": " '{print $2}'
|
||
|
}
|
||
|
|
||
|
do_sysinfo_rb532() {
|
||
|
mkdir -p /tmp/sysinfo
|
||
|
echo rb532 > /tmp/sysinfo/board_name
|
||
|
get_model_rb532 > /tmp/sysinfo/model
|
||
|
}
|
||
|
|
||
|
boot_hook_add preinit_main do_sysinfo_rb532
|