mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
On NetBSD, qemu-xen will use a qemu-ifup script to setup the tap interfaces (as qemu-xen-traditional used to). Copy the script from qemu-xen-traditional, and install it on NetBSD. While there document parameters and environnement variables. Signed-off-by: Manuel Bouyer <bouyer@netbsd.org> Acked-by: Ian Jackson <iwj@xenproject.org>
10 lines
294 B
Bash
10 lines
294 B
Bash
#!/bin/sh
|
|
|
|
#called by qemu when a HVM domU is started.
|
|
# first parameter is tap interface, second is the bridge name
|
|
# environement variable $XEN_DOMAIN_ID contains the domU's ID,
|
|
# which can be used to retrieve extra parameters from the xenstore.
|
|
|
|
ifconfig $1 up
|
|
exec /sbin/brconfig $2 add $1
|