[sugar] [PATCH] Trac #7480: Need to 'reset' the network configurations - short term fix

Morgan Collett morgan.collett at gmail.com
Tue Aug 12 04:26:08 EDT 2008


On Tue, Aug 12, 2008 at 03:31, Erik Garrison <erik at laptop.org> wrote:
> Attached is a patch which adds a 'reset network configuration' button to
> the network tab of the sugar control panel.  Clicking this button simply
> rotates the config file out of the way, saving it as
> ~/.sugar/default/nm/networks.cfg.bak.NNN  (NNN is the number of
> previously backed-up configs +1).
>
> This is just a short-term fix (hack) to resolve the problem of not
> having any gui-level method to manipulate the nm network configarion.
> Eben has noted that we would like to enable config panel level
> manipulation of the networks.cfg stanzas; but this requires a bit more
> code than this immediate fix.

This needs testing: in some cases NM replaces the config with what was there.

I added a different AP to my home network (in parallel with my
existing AP). To get the XOs to associate only with the new AP, I
thought I'd simply delete networks.cfg and then associate to the new
AP. When I rebooted to make sure it did what I wanted, networks.cfg
had both the old and the new APs. To end up with only the new AP in
networks.cfg, I had to first associate to the new AP, then remove the
old one from networks.cfg - then rebooting after that showed only the
new one.

So, YMMV.

Regards
Morgan


More information about the Sugar mailing list