#9413 NORM Not Tri: revisit XO-1 vs XO-1.5 detection from /ofw

Zarro Boogs per Child bugtracker at laptop.org
Thu Jul 16 12:40:42 EDT 2009


#9413: revisit XO-1 vs XO-1.5 detection from /ofw
--------------------+-------------------------------------------------------
 Reporter:  dsd     |                 Owner:  cjb          
     Type:  task    |                Status:  new          
 Priority:  normal  |             Milestone:  Not Triaged  
Component:  distro  |               Version:  not specified
 Keywords:          |           Next_action:  never set    
 Verified:  0       |   Deployment_affected:               
Blockedby:          |              Blocking:               
--------------------+-------------------------------------------------------
 olpc-configure from olpc-utils does this:

 {{{
 get_xo_version() {
         # FIXME: is this reliable?
         [ -e "/ofw/banner-name" ] || return

         banner=$(</ofw/banner-name)
         if [ "${banner:0:6}" == "OLPC C" ]; then
                 XO_VERSION="1"
         elif [ "${banner}" == "OLPC XO 1.5" ]; then
                 XO_VERSION="1.5"
         fi
 }
 }}}

 olpc-session (also in olpc-utils) does the same.

 Please confirm that that is a reliable way to distinguish the machines,
 and also that it stays that way. The "banner_name" format seems to have
 changed since XO-1 and I'm not sure if that was intentional.

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


More information about the Bugs mailing list