3 # Copyright (C) 2012 OpenWrt.org
9 ixp4xx_board_detect
() {
13 machine
=$
(awk 'BEGIN{FS="[ \t]+:[ \t]"} /Hardware/ {print $2}' /proc
/cpuinfo
)
27 [ -z "$IXP4XX_BOARD_NAME" ] && IXP4XX_BOARD_NAME
="$name"
28 [ -z "$IXP4XX_MODEL" ] && IXP4XX_MODEL
="$machine"
30 [ -e "/tmp/sysinfo/" ] || mkdir
-p "/tmp/sysinfo/"
32 echo "$IXP4XX_BOARD_NAME" > /tmp
/sysinfo
/board_name
33 echo "$IXP4XX_MODEL" > /tmp
/sysinfo
/model