5 machine=$(grep "^system type" /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g")
6 of_machine=$(head -n1 /sys/firmware/devicetree/base/compatible)
8 # Sadly for whatever reason the N821 (Cisco Viptela vEdge 1000) uses the
9 # same supposedly unique board ID as the EdgeRouter. This is bad, so
10 # we override what cpuinfo gives us using the device tree as a hint.
31 # let generic 02_sysinfo handle it since device has its own device tree
36 name="itus,shield-router"
44 [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
46 echo "$name" > /tmp/sysinfo/board_name
47 echo "$machine" > /tmp/sysinfo/model
50 boot_hook_add preinit_main do_sysinfo_octeon