#11425 NORM Opportu: Need a secure field mechanism for setting RTC

Zarro Boogs per Child bugtracker at laptop.org
Mon Jan 9 18:17:01 EST 2012


#11425: Need a secure field mechanism for setting RTC
-------------------------------------------+--------------------------------
           Reporter:  reuben               |       Owner:  reuben       
               Type:  enhancement          |      Status:  new          
           Priority:  normal               |   Milestone:  Opportunity  
          Component:  ofw - open firmware  |     Version:  not specified
         Resolution:                       |    Keywords:               
        Next_action:  never set            |    Verified:  0            
Deployment_affected:                       |   Blockedby:               
           Blocking:                       |  
-------------------------------------------+--------------------------------

Comment(by Quozl):

 Any part of an olpc.fth can be used, provided it is executed.  I can't be
 more specific without more information; such as the existing olpc.fth
 file, and whether it is executed on every boot or only when a USB drive is
 inserted.

 Yes, the code can test the year.  For example, the following code tests
 that the year is less than 2012, and skips the ntp-set-clock if the year
 is 2012 or later.  The code would replace the last two lines in my
 previous comment on this ticket.

 {{{
 : get-year  ( -- year )  time&date 2nip 2nip nip  ;

 get-year d# 2012 < if
    scan-wifi an-ssid@ $essid
    ntp-set-clock
 then
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/11425#comment:6>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list