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

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

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