summaryrefslogtreecommitdiffstats
path: root/target/linux/ppc40x/base-files/lib/ppc40x.sh
blob: 8a6c48776652a8937e61a6cb75799e39bdfc67f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#
# Copyright (C) 2010 OpenWrt.org
#

ppc40x_board_name() {
	local model

	model=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /model/ {print $2}' /proc/cpuinfo)
	echo $model
}