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

Martin Abente martin.abente.lahaye at gmail.com
Wed Mar 2 15:12:41 EST 2011


thanks!

On Wed, Mar 2, 2011 at 4:59 PM, Bernie Innocenti <bernie at codewiz.org> wrote:

> 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/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/dextrose/attachments/20110302/8bb803b3/attachment.html>


More information about the Dextrose mailing list