fcf436606c
do a patch refresh in xentools42 rather than split the patches for pass-through.c over 5 files, delete xentools42/patches/patch-CVE-2015-2756 and assemble all in xentools42/patches/patch-qemu-xen-traditional_hw_pass-through.c
16 lines
604 B
Text
16 lines
604 B
Text
$NetBSD: patch-hotplug_NetBSD_vif-bridge,v 1.2 2015/08/23 16:17:12 spz Exp $
|
|
|
|
--- hotplug/NetBSD/vif-bridge.orig 2014-09-02 06:22:57.000000000 +0000
|
|
+++ hotplug/NetBSD/vif-bridge
|
|
@@ -23,7 +23,10 @@ case $xstatus in
|
|
xbridge=$(xenstore-read "$xpath/bridge")
|
|
xfid=$(xenstore-read "$xpath/frontend-id")
|
|
xhandle=$(xenstore-read "$xpath/handle")
|
|
- iface=$(xenstore-read "$xpath/vifname")
|
|
+ iface=$(xenstore-read "$xpath/vifname") || true
|
|
+ if [ x${iface} = "x" ] ; then
|
|
+ iface=xvif$xfid.$xhandle
|
|
+ fi
|
|
ifconfig $iface up
|
|
brconfig $xbridge add $iface
|
|
xenstore-write $xpath/hotplug-status connected
|