debuggers.hg

changeset 22815:c281e9c58146

tools/hotplug/NetBSD: update netbsd scripts (interface names)

sysctl fail due to the '.' in the interface name:

Jan 10 00:02:26 paris /netbsd: xvif108.0: could not attach sysctl nodes
Jan 10 00:02:57 paris /netbsd: sysctl_createv: sysctl_create(xvif108.0)
returned 22

The kernel driver have recently been fixed and attached patch updates
to the hotplug scripts accordingly.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Christoph Egger <Christoph.Egger@amd.com>
date Mon Jan 17 17:31:24 2011 +0000 (2011-01-17)
parents f8d801e5573e
children 47be85d61f11
files tools/hotplug/NetBSD/vif-bridge tools/hotplug/NetBSD/vif-ip
line diff
     1.1 --- a/tools/hotplug/NetBSD/vif-bridge	Mon Jan 17 17:28:30 2011 +0000
     1.2 +++ b/tools/hotplug/NetBSD/vif-bridge	Mon Jan 17 17:31:24 2011 +0000
     1.3 @@ -23,7 +23,7 @@ 2)
     1.4  	xbridge=$(xenstore-read "$xpath/bridge")
     1.5  	xfid=$(xenstore-read "$xpath/frontend-id")
     1.6  	xhandle=$(xenstore-read "$xpath/handle")
     1.7 -	iface=xvif$xfid.$xhandle
     1.8 +	iface=$(xenstore-read "$xpath/vifname")
     1.9  	echo ifconfig $iface up
    1.10  	ifconfig $iface up
    1.11  	brconfig $xbridge add $iface
     2.1 --- a/tools/hotplug/NetBSD/vif-ip	Mon Jan 17 17:28:30 2011 +0000
     2.2 +++ b/tools/hotplug/NetBSD/vif-ip	Mon Jan 17 17:31:24 2011 +0000
     2.3 @@ -23,7 +23,7 @@ 2)
     2.4  	xip=$(xenstore-read "$xpath/ip")
     2.5  	xfid=$(xenstore-read "$xpath/frontend-id")
     2.6  	xhandle=$(xenstore-read "$xpath/handle")
     2.7 -	iface=xvif$xfid.$xhandle
     2.8 +	iface=$(xenstore-read "$xpath/vifname")
     2.9  	echo ifconfig $iface $xip up
    2.10  	ifconfig $iface $xip up
    2.11  	xenstore-write $xpath/hotplug-status connected