summaryrefslogtreecommitdiff
path: root/sysutils/xentools413/patches/patch-tools_hotplug_NetBSD_vif-ip
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/xentools413/patches/patch-tools_hotplug_NetBSD_vif-ip')
-rw-r--r--sysutils/xentools413/patches/patch-tools_hotplug_NetBSD_vif-ip15
1 files changed, 15 insertions, 0 deletions
diff --git a/sysutils/xentools413/patches/patch-tools_hotplug_NetBSD_vif-ip b/sysutils/xentools413/patches/patch-tools_hotplug_NetBSD_vif-ip
new file mode 100644
index 00000000000..d15679ebfed
--- /dev/null
+++ b/sysutils/xentools413/patches/patch-tools_hotplug_NetBSD_vif-ip
@@ -0,0 +1,15 @@
+$NetBSD: patch-tools_hotplug_NetBSD_vif-ip,v 1.1 2020/05/26 11:12:11 bouyer Exp $
+
+--- tools/hotplug/NetBSD/vif-ip.orig 2015-01-12 17:53:24.000000000 +0100
++++ tools/hotplug/NetBSD/vif-ip 2015-01-19 13:16:37.000000000 +0100
+@@ -24,6 +24,10 @@
+ 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 $xip up
+ xenstore-write $xpath/hotplug-status connected
+ exit 0