]> xenbits.xensource.com Git - qemu-xen-4.3-testing.git/commit
New scriptarg=... -net parameter allows passing of an argument to the script.
authorIan Jackson <iwj@mariner.uk.xensource.com>
Thu, 12 Jun 2008 17:21:08 +0000 (18:21 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 12 Jun 2008 17:21:08 +0000 (18:21 +0100)
commit217a9ad26e9e94c19b1b2119b3ac377473e4fe9b
tree393ee6104e4801fdfceea29bfa2456d02b1087fe
parent0f41196339521359d69420b8a5feaa02e134da1c
New scriptarg=... -net parameter allows passing of an argument to the script.

Previously, network scripts would have to do all of their work based
only on the script name and interface name.  If the script's behaviour
is supposed to be different for different network interfaces this
might involve constructing a special script for each interface with
the associated need to delete it etc.

With this patch it is possible to specify
  -net=...,scriptarg=<extra-info>
which gets passed as a $2 to the qemu-ifup script.
vl.c