re active the network mesh when suspends the system

Martin Abente martin.abente.lahaye at gmail.com
Fri Dec 17 09:38:28 EST 2010


I tried this but did not work either ;/

Apparently the mesh re-activation happens after this script is being run.

On Thu, Dec 16, 2010 at 2:39 PM, Paul Fox <pgf at laptop.org> wrote:

> martin wrote:
>  > On Wed, Dec 15, 2010 at 11:52 AM, Esteban Arias
>  > <earias at plan.ceibal.edu.uy> wrote:
>  > > I have the mesh inactive (dextrose version xo-1.0)
>  > >
>  > > In the file: /etc/rc.local I have:
>  > > echo 0 > /sys/class/net/eth0/lbs_mesh
>  > >
>  > > but, when suspends the system, (close and open the laptop xo),
>  > > reactive the mesh....
>  >
>  > I think recent versions of powerd can run scripts on resume --
>  >
>
> actually post-resume scripts have been available for some time.
> it was pre-suspend scripts that were added recently.
>
> look for "Post-resume scripts" in /usr/sbin/powerd for documentation.
>
> Note:  these scripts run when there's a high likelihood that
> the system will, or did, suspend.  but the suspend may not actually
> have happened.  in the case being discussed ("echo 0 > lbs_mesh"), it
> sounds like that's probably okay, but you wouldn't want to use these
> script hooks to implement a suspend counter, or something that breaks
> the system if the suspend didn't actually take place.
>
> paul
> =---------------------
>  paul fox, pgf at laptop.org
> _______________________________________________
> Devel mailing list
> Devel at lists.laptop.org
> http://lists.laptop.org/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20101217/f329753c/attachment.html>


More information about the Devel mailing list