get XO id via bash
Sameer Verma
sverma at sfsu.edu
Fri Feb 25 15:01:16 EST 2011
On Fri, Feb 25, 2011 at 7:39 PM, Mikus Grinbergs <mikus at bga.com> wrote:
>> how to get the XO unique identifier using bash?
>
> Please be more explicit in what you mean by "identifier".
I meant serial number. Thanks for the if..then
cheers,
Sameer
>
>
> To get the serial number:
>
> > if [ -e /ofw/serial-number ]; then
> > echo "Serial : "`cat /ofw/serial-number`
> > fi
>
> To get the radio MAC address:
>
> Get output of 'ifconfig eth0', then extract the string
> after the label "HWaddr"
>
> To get the name given to Sugar:
>
> Get output of 'gconftool-2 --direct
> --config-source=xml:readwrite:/home/olpc/.gconf
> /desktop/sugar/user/nick --get'
>
> [That command is all on one line]
>
> To get the name given to NetworkManager:
>
> Get output of 'hostname' (and parse if need be)
>
>
> mikus
More information about the Devel
mailing list