mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
17 lines
608 B
Plaintext
17 lines
608 B
Plaintext
$NetBSD: patch-hotplug_NetBSD_vif-bridge,v 1.1 2013/05/15 06:58:50 jnemeth Exp $
|
|
|
|
--- hotplug/NetBSD/vif-bridge.orig 2012-12-17 15:00:35.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
|