[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: F11 for the X01- shutdown





--- On Fri, 7/31/09, Martin Langhoff <martin langhoff gmail com> wrote:

> From: Martin Langhoff <martin langhoff gmail com>
> Subject: Re: F11 for the X01- shutdown
> To: "Yioryos Asprobounitis" <mavrothal yahoo com>
> Cc: "James Cameron" <quozl laptop org>, "Daniel Drake" <dsd laptop org>, fedora-olpc-list redhat com
> Date: Friday, July 31, 2009, 2:57 PM
> On Fri, Jul 31, 2009 at 10:24 AM,
> Yioryos
> Asprobounitis<mavrothal yahoo com>
> wrote:
> >
> > Actually issuing
> > [root localhost activity]#
> /usr/sbin/olpc-update-query
> > consistently shuts down my XO!
> > And I do have the devkey installed
> 
> Yes, that's consistent with the diagnosis we've been
> making.
> 
> If you can edit your olpc-update-query script (make a
> backup!) find
> the line that calls 'halt', comment it out (prefixing it
> with a #) and
> add right under it, with the same indentation:
> 
>      report(0, 'Server said stolen: %s'
> % data)
> 
> the whole block of code will look like
> 
>     if isxo and 'stolen' in resp_map:
>        
> check_stolen_hash(resp_map['stolen'], uuid, nonce)
>         # this machine has been
> reported stolen - get rid of
>         # any leases and poweroff
>         if os.path.exists(LEASE_FILE):
>            
> os.unlink(LEASE_FILE)
>         #call(['/usr/bin/halt'])
>         report(0, 'Server said stolen:
> %s' % data)
>         exit()
> 
> 

This works too in NOT crashing my XO upon /usr/sbin/olpc-update-query.
Which one is the best theft deterrent is up to you guys.

> cheers,
> 
> 
> 
> 
> m
> >
> > --- On Fri, 7/31/09, Martin Langhoff <martin langhoff gmail com>
> wrote:
> >
> >> From: Martin Langhoff <martin langhoff gmail com>
> >> Subject: Re: F11 for the X01- shutdown
> >> To: "Yioryos Asprobounitis" <mavrothal yahoo com>
> >> Cc: "James Cameron" <quozl laptop org>,
> "Daniel Drake" <dsd laptop org>,
> fedora-olpc-list redhat com
> >> Date: Friday, July 31, 2009, 11:49 AM
> >> On Fri, Jul 31, 2009 at 9:39 AM,
> >> Yioryos
> >> Asprobounitis<mavrothal yahoo com>
> >> wrote:
> >> >
> >> > --- On Fri, 7/31/09, Martin Langhoff <martin langhoff gmail com>
> >> wrote:>
> >> >> It does sound like the server response
> says
> >> stolen. What
> >> >> does the
> >> >> 'data' variable -- which will hold the
> raw server
> >> response
> >> >> -- contain?
> >> >>
> >> >> Arguably, if the machines are jailbroken,
> then
> >> >> olpc-update-query
> >> >> shouldn't care. Clearly your machines
> are
> >> devkey'd.
> >> >>
> >> >
> >> > Well,... I _believe_ I had security disabled
> in OFW
> >> long time
> >>
> >> Can you dump the contents of 'data' for us? If the
> server
> >> seems to
> >> claim your XO is stolen, part of the question is
> why?
> >>
> >> cheers,
> >>
> >>
> >> m
> >> --
> >>  martin langhoff gmail com
> >>  martin laptop org
> >> -- School Server Architect
> >>  - ask interesting questions
> >>  - don't get distracted with shiny stuff  -
> working
> >> code first
> >>  - http://wiki.laptop.org/go/User:Martinlanghoff
> >>
> >
> >
> >
> >
> 
> 
> 
> -- 
>  martin langhoff gmail com
>  martin laptop org
> -- School Server Architect
>  - ask interesting questions
>  - don't get distracted with shiny stuff  - working
> code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
> 


      


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]