Bug#530024: [Pkg-utopia-maintainers] Bug#530024: network-manager: suggested patch

2010-10-19 Thread Raphael Hertzog
Hi,

On Wed, 20 Oct 2010, Michael Biebl wrote:
> a/ running the script will comment out the line
> "iface ethX inet dhcp", but not "auto ethX" itself. Is that intentional? I'd 
> say
> commenting out all lines relating to ethX would be more logical

The ubuntu script has a comment about this, so it's known/intentional but
it doesn't hurt AFAIK.

The problem with those auto lines is that you can have multiple interfaces
on the same line so you can't just disable the whole line unless you have
a single interface listed.

> b/ I'd change the comment marker to something like
> ## or ##

Put the value that you want.

> c/ I'm not sure if we should restore /etc/network/interfaces from the backup
> file, as this file might have become out-of-sync with /etc/network/interface 
> and
> we overwrite changes that were made in between. The question is, if we even 
> need
> to create a backup file.

> My suggestion would be, to simply remove the comment markers (inplace) for
> /etc/network/interface on remove. This would ensure we preserve any local
> modifications.
> What do you think?

This is already what the patch does. I have left the backup files for extra
safety but if you feel confident not creating them, I'm fine with this.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer ◈ [Flattr=20693]

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
  ▶ http://RaphaelHertzog.fr (Français)



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#530024: [Pkg-utopia-maintainers] Bug#530024: network-manager: suggested patch

2010-10-19 Thread Michael Biebl
On 03.10.2010 22:49, Raphael Hertzog wrote:
> tags 530024 + patch
> thanks
> 
> Hi, 
> 
> please find attached a patch based on what Ubuntu has done with a few
> improvements:
> - a single backup per run but the correct one
> - disable with a special prefix (to allow the next feature)
> - re-enable on removal
> 
> It's still somewhat crude, i.e. it's not something I would like to have on
> my own package but it works for now. You might also want to tweak the name
> of the backup files and maybe remove them on purge...

Hi Raphael,

thanks for the patch. A few comments:

a/ running the script will comment out the line
"iface ethX inet dhcp", but not "auto ethX" itself. Is that intentional? I'd say
commenting out all lines relating to ethX would be more logical

b/ I'd change the comment marker to something like
## or ##

c/ I'm not sure if we should restore /etc/network/interfaces from the backup
file, as this file might have become out-of-sync with /etc/network/interface and
we overwrite changes that were made in between. The question is, if we even need
to create a backup file.
My suggestion would be, to simply remove the comment markers (inplace) for
/etc/network/interface on remove. This would ensure we preserve any local
modifications.
What do you think?


Other than that, it seems to do it's job just fine.

Thanks again,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature