#!/bin/sh

echo "config qemu network with xen bridge for $@"

if [ -z "$domid" ]; then
    echo "domid is not set!!!" >&2
    exit 1
fi

dev=$1
qemu_online=yes
XENBUS_PATH=/local/domain/0/backend/vif/${domid}/0
vif=vif${domid}.0
export vif qemu_online XENBUS_PATH dev 

exec /etc/xen/scripts/vif-sipbroute online
