3
# $NetBSD: vif-bridge-nbsd,v 1.1.1.1 2008/08/07 20:26:57 cegger Exp $
4
# Called by xenbackendd
5
# Usage: vif-bridge xsdir_backend_path state
8
. "${DIR}/hotplugpath.sh"
10
PATH=${BINDIR}:${SBINDIR}:${LIBEXEC}:${PRIVATE_BINDIR}:/bin:/usr/bin:/sbin:/usr/sbin
23
xbridge=$(xenstore-read "$xpath/bridge")
24
xfid=$(xenstore-read "$xpath/frontend-id")
25
xhandle=$(xenstore-read "$xpath/handle")
26
iface=xvif$xfid.$xhandle
27
echo ifconfig $iface up
29
brconfig $xbridge add $iface
30
echo brconfig $xbridge add $iface
31
xenstore-write $xpath/hotplug-status connected
32
echo xenstore-write $xpath/hotplug-status connected