Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Fixing xvif(4) names, yet again

On Wed, Apr 06, 2011 at 01:36:30PM +0100, Jean-Yves Migeon wrote:
> On Wed, 6 Apr 2011 13:46:30 +0200, Manuel Bouyer
> <bouyer%antioche.eu.org@localhost> wrote:
> >>If you issue a /etc/rc.d/network restart with present xvif(4) and
> >>"auto_ifconfig" enabled, the rc.d/network will look for
> >>ifconfig_xvifXXX variables [1] . Given the eval line, it won't get
> >>the correct variable due to sh POSIX conventions for shell
> >>variables.
> >
> >but why would there be a ifconfig_xvifXXX variable anyway ?
> >as these names are more or less random anyway, it wouldn't
> >make sense to have these in rc.conf ...
> True. But the problem does not lie here. When performing the eval
> [1], instead of returning an empty string, it will set the args
> variable to ".0" (or "-0"). args being non empty, it will attempt an
> "ifconfig .0 down"... which will return an error.

ha ok, I see the problem.
Well, if _ is working, let's use this instead.

Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference

Home | Main Index | Thread Index | Old Index