[OE-core] [oe-core] udev: update rcS to auto-detect hostname
Koen Kooi
koen at dominion.thruhere.net
Wed Aug 15 07:41:12 UTC 2012
Op 15 aug. 2012, om 05:01 heeft Khem Raj <raj.khem at gmail.com> het volgende geschreven:
> On Tue, Aug 14, 2012 at 8:08 PM, <b19537 at freescale.com> wrote:
>> echo `cat /proc/cpuinfo | grep model | cut -d "," -f 2 | tr "[A-Z]" "[a-z]"`
>
> $ echo `cat /proc/cpuinfo | grep model | cut -d "," -f 2 | tr "[A-Z]" "[a-z]"`
> model : 23 model name : intel(r) core(tm)2 quad cpu q9300 @ 2.50ghz
> model : 23 model name : intel(r) core(tm)2 quad cpu q9300 @ 2.50ghz
> model : 23 model name : intel(r) core(tm)2 quad cpu q9300 @ 2.50ghz
> model : 23 model name : intel(r) core(tm)2 quad cpu q9300 @ 2.50ghz
>
> is that what we want ?
On ARM it will be empty:
root at beaglebone:~# echo `cat /proc/cpuinfo | grep model | cut -d "," -f 2 | tr "[A-Z]" "[a-z]"`
root at beaglebone:~#
More information about the Openembedded-core
mailing list