summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/base-files/lib/lantiq.sh
blob: 75e8ac272b656d212a8ca8fe06a9cd1bdbffc0dd (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

lantiq_soc_name() {
	grep ^system /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g"
}

lantiq_board_name() {
	grep ^machine /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/\(.*\) - .*/\1/g"
}