mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-27 14:00:45 -04:00
17 lines
593 B
Plaintext
17 lines
593 B
Plaintext
$NetBSD: patch-ak,v 1.2 2011/04/15 13:35:05 bouyer Exp $
|
|
|
|
--- hotplug/NetBSD/vif-ip.orig 2011-04-01 16:04:24.000000000 +0200
|
|
+++ hotplug/NetBSD/vif-ip 2011-04-01 16:04:54.000000000 +0200
|
|
@@ -23,7 +23,10 @@
|
|
xip=$(xenstore-read "$xpath/ip")
|
|
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 $xip up
|
|
ifconfig $iface $xip up
|
|
xenstore-write $xpath/hotplug-status connected
|