[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  . Given the eval line, it won't get
> >>the correct variable due to sh POSIX conventions for shell
> >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
> , 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
Main Index |
Thread Index |