[Dextrose] [PATCH] exit disable_mesh if not xo 1

Bernie Innocenti bernie at codewiz.org
Wed Mar 2 14:59:28 EST 2011


On Wed, 2011-03-02 at 15:05 -0300, Martin Abente wrote: 
> LBS_MESH=/sys/class/net/eth0/lbs_mesh
> +XO_MODEL=/ofw/mfg-data/MN
> +
> +if [ $(cat $XO_MODEL) != "XO-1" ]

To protect against the case where the MN tag is not set, or Dextrose
runs on non-XO hardware, this line should be written as:

if [ -f $XO_MODEL -a "$(cat $XO_MODEL)" != "XO-1" ]; then

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs       - http://sugarlabs.org/




More information about the Dextrose mailing list