mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
12 lines
250 B
Plaintext
12 lines
250 B
Plaintext
|
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
|