[pve-devel] [PATCH] add vlan aware bridge ifupdown script

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Jul 24 18:51:40 CEST 2015


> On July 24, 2015 at 6:42 PM Dietmar Maurer <dietmar at proxmox.com> wrote:
> > I have simply copy/paste current code from /etc/network/if-pre-up.d/vlan
> > So, it should work with bash and dash ?
>
> package libpve-common-perl does not depend on bash, so its best to avoid bash?
> Or should we add a dependency to make code easier?

The current version works in Dash anyway. I just consider Dash inferior since
bash makes a bunch of string handling easier.
Though I saw that ${x//} actually doesn't take a complete regex anyway, so you'd
have to use the =~ operator and that's more code again...
(I'm also a FreeBSD user so suggesting Bash as a dependency probably reserved me
a slot in hell, too ;-) )




More information about the pve-devel mailing list