1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-02 04:26:16 +02:00
openwrt-xburst/target/linux/lantiq/base-files/lib/lantiq.sh
blogic bddadbe32b lantiq: add /lib/lantiq.sh and make hotplug handlers use it
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29003 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 23:40:16 +00:00

10 lines
212 B
Bash

#!/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"
}