From: Christoph Egger Subject: [PATCH] tools: update netbsd hotplug scripts Date: Wed, 12 Jan 2011 16:27:29 +0100 Message-ID: <201101121627.30364.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_ihcLNshP5e14tt6" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_ihcLNshP5e14tt6 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! 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 -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_ihcLNshP5e14tt6 Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_scripts.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_scripts.diff" Content-Description: xen_scripts.diff diff -r 7aa4e7349c45 -r 3f2df469f683 tools/hotplug/NetBSD/vif-bridge --- a/tools/hotplug/NetBSD/vif-bridge +++ b/tools/hotplug/NetBSD/vif-bridge @@ -23,7 +23,7 @@ 2) xbridge=$(xenstore-read "$xpath/bridge") xfid=$(xenstore-read "$xpath/frontend-id") xhandle=$(xenstore-read "$xpath/handle") - iface=xvif$xfid.$xhandle + iface=$(xenstore-read "$xpath/vifname") echo ifconfig $iface up ifconfig $iface up brconfig $xbridge add $iface diff -r 7aa4e7349c45 -r 3f2df469f683 tools/hotplug/NetBSD/vif-ip --- a/tools/hotplug/NetBSD/vif-ip +++ b/tools/hotplug/NetBSD/vif-ip @@ -23,7 +23,7 @@ 2) xip=$(xenstore-read "$xpath/ip") xfid=$(xenstore-read "$xpath/frontend-id") xhandle=$(xenstore-read "$xpath/handle") - iface=xvif$xfid.$xhandle + iface=$(xenstore-read "$xpath/vifname") echo ifconfig $iface $xip up ifconfig $iface $xip up xenstore-write $xpath/hotplug-status connected --Boundary-00=_ihcLNshP5e14tt6 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_ihcLNshP5e14tt6--