blob: afd5cfd504b9aea1774882f3ef0e0624a357230e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-aj,v 1.1 2016/12/29 23:12:23 wiz Exp $
--- hotplug/NetBSD/vif-bridge.orig 2011-03-25 11:42:50.000000000 +0100
+++ hotplug/NetBSD/vif-bridge 2011-04-01 14:55:58.000000000 +0200
@@ -23,7 +23,10 @@
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
echo ifconfig $iface up
ifconfig $iface up
brconfig $xbridge add $iface
|