Bug#418065: [Pkg-vsquare-devel] Bug#418065: vde2: integration with
ifup/ifdown needlessly restrict the naming of the interface
Filippo Giunchedi
filippo at debian.org
Sat Apr 7 12:25:57 UTC 2007
On Sat, Apr 07, 2007 at 02:05:01PM +0200, Raphael Hertzog wrote:
> On Sat, 07 Apr 2007, Filippo Giunchedi wrote:
> > another option can be to check if a vde2-* option has been specified in the
> > stanza, to my knowledge ifupdown exports them to the script's environment. Would
> > that work?
>
> I think so, but that test is already at the beginning of the script
> /etc/network/if-pre-up.d/vde2.
>
> if [ ! -x $VDE2_SWITCH ] || [ ! -x $SLIRPVDE ]; then
> exit 0
> fi
>
> It might be enough to protect similarly the other script.
indeed, I would go for something like this: (after or before the above test)
# this is not an interesting stanza for us
if [ -z "$IF_VDE2_SWITCH" -a -z "$IF_VDE2_PLUG" -a -z "$IF_VDE2_SLIRP" ]; then
exit 0
fi
filippo
--
Filippo Giunchedi - http://esaurito.net
PGP key: 0x6B79D401
random quote follows:
Gretchen: You're weird.
Donnie: Sorry.
Gretchen: No, that was a compliment.
-- from Donnie Darko (2001)
More information about the Pkg-vsquare-devel
mailing list