mcs814x: Remove unmaintained target
[openwrt/openwrt.git] / target / linux / ppc40x / base-files / lib / preinit / 01_sysinfo
1 #!/bin/sh
2
3 do_sysinfo_ppc40x() {
4 local name="$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /model/ {print $2}' /proc/cpuinfo)"
5 [ -z "$name" ] && name="unknown"
6
7 [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
8 echo "$name" > /tmp/sysinfo/board_name
9 echo "unknown" > /tmp/sysinfo/model
10 }
11
12 boot_hook_add preinit_main do_sysinfo_ppc40x