openwrt/target/linux/rb532/base-files/lib/preinit/10_sysinfo

12 lines
250 B
Plaintext
Raw Normal View History

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