WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Dedicate Nic's to DomU's

To: Hans Pfeil <HPfeil@xxxxxxx>
Subject: Re: [Xen-users] Dedicate Nic's to DomU's
From: John Haxby <john.haxby@xxxxxxxxxx>
Date: Wed, 11 Jun 2008 11:53:27 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 11 Jun 2008 03:55:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <484D252A.6010.00BD.0@xxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <484CFCBE.6010.00BD.0@xxxxxxx> <49627735003F5C479100225C339F9FE06FDC24AEF6@xxxxxxxxxxxxxxxxxxxxxx> <484D252A.6010.00BD.0@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080501)
Hans Pfeil wrote:
#!/bin/sh
dir=$(/etc/xen/scripts "$0")
"$dir/network-bridge" "$@" vifnum=1 bridge=xenbr1 netdev=eth1

I'm not sure what you're trying to accomplish with that "dir=..." line but it's not going to work. The line says "execute /etc/xen/scripts with the name that this script was invoked with as parameter". Well, /etc/xen/scripts is a directory and you can't execute it.

I suspect that you actually want

   dir=$(dirname "$0")

and I'm guessing that there was a transcription error somewhere and you thought you had to replace "dirname" (which is a command) with the name of a directory.

jch

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users