[prev in list] [next in list] [prev in thread] [next in thread]
List: olpc-devel
Subject: Re: get XO id via bash
From: Sameer Verma <sverma () sfsu ! edu>
Date: 2011-02-25 20:01:16
Message-ID: AANLkTikoKJNbWLW3dGfUKMiWPiS-bDXgCZF9wwPhXQGw () mail ! gmail ! com
[Download RAW message or body]
On Fri, Feb 25, 2011 at 7:39 PM, Mikus Grinbergs <mikus@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
_______________________________________________
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic