From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BdabL-0005JQ-PH for qemu-devel@nongnu.org; Thu, 24 Jun 2004 16:13:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BdabL-0005J0-3M for qemu-devel@nongnu.org; Thu, 24 Jun 2004 16:13:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BdabK-0005IZ-T1 for qemu-devel@nongnu.org; Thu, 24 Jun 2004 16:13:38 -0400 Received: from [38.113.3.61] (helo=babyruth.hotpop.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BdaZp-00069W-1U for qemu-devel@nongnu.org; Thu, 24 Jun 2004 16:12:05 -0400 Received: from phreaker.net (kubrick.hotpop.com [38.113.3.103]) by babyruth.hotpop.com (Postfix) with SMTP id 0FB0A6522C1 for ; Thu, 24 Jun 2004 19:31:46 +0000 (UTC) Received: from jbrown.mylinuxbox.org (pcp03144805pcs.midval01.tn.comcast.net [68.59.228.236]) by smtp-2.hotpop.com (Postfix) with ESMTP id 6A0176620A7 for ; Thu, 24 Jun 2004 19:31:42 +0000 (UTC) Date: Thu, 24 Jun 2004 16:09:21 -0400 From: "Jim C. Brown" Message-ID: <20040624200921.GA31765@jbrown.mylinuxbox.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline Subject: [Qemu-devel] updated vqemu Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This version supports using a config file in a place other than in the current directory using the -config parameter. Use as: vqemu -config config-file qemu-parameters E.g. vqemu -config ~/.vqemurc.minix -S -config must be the first parameter to vqemu, and config-file the second. Also vqemu supports the new -isa switch. If if you put PCI=off or ISA=on in your config file, vqemu passes the -isa switch. The new default is to use PCI. If you're using an old CVS version of qemu that still has -pci, you can set DEFINE_ISA_SWITCH=off (or any other value besides 'on') in the script and vqemu will pass the -pci option UNLESS PCI=off or ISA=on in your config file. -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection. --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=vqemu #! /bin/sh # DEFINE_ISA_SWITCH is used to tell whether or not our version of qemu # supports the -isa switch. If it does we use that (and pci becomes # default) if not we use -pci switch (and isa becomes default). DEFINE_ISA_SWITCH=on if [ "$1" = "-config" ]; then . $2 shift 2 else . ./.qemurc fi comline=`which qemu` if [ -n "$qemu" ]; then comline="$qemu" fi if [ "$vde" = "on" ]; then comline="vdeq $comline" fi if [ -n "$boot" ]; then comline="$comline -boot $boot" fi if [ -n "$megs" ]; then comline="$comline -m $megs" fi if [ -n "$fda" ]; then comline="$comline -fda $fda" fi if [ -n "$fdb" ]; then comline="$comline -fdb $fdb" fi if [ -n "$hda" ]; then comline="$comline -hda $hda" fi if [ -n "$hdachs" ]; then comline="$comline -hdachs $hdachs" fi if [ -n "$hdb" ]; then comline="$comline -hdb $hdb" fi if [ -n "$cdrom" ]; then comline="$comline -cdrom $cdrom" fi if [ -n "$hdc" ]; then comline="$comline -hda $hdc" fi if [ -n "$hdd" ]; then comline="$comline -hda $hdd" fi if [ "$audio" = "on" ]; then comline="$comline -enable-audio" fi if [ "$DEFINE_ISA_SWITCH" = "on"]; then if [ "$pci" = "off" || "$isa" = "on" ]; then comline="$comline -isa" fi else if [ "$pci" = "off" || "$isa" = "on" ]; then # do nothing else # make sure that PCI is the default comline="$comline -pci" fi fi if [ -n "$macaddr" ]; then comline="$comline -macaddr $macaddr" fi if [ "$cirrus" = "on" ]; then comline="$comline -cirrusvga" fi if [ "$localtime" = "on" ]; then comline="$comline -localtime" fi if [ "$usernet" = "on" ]; then comline="$comline -user-net" elif [ "$usernet" = "dummy" ]; then comline="$comline -dummy-net" fi if [ -n "$nics" ]; then comline="$comline -nics $nics" fi if [ -n "$netscript" ]; then comline="$comline -n $netscript" fi if [ "$graphic" = "off" ]; then comline="$comline -nographic" fi exec $comline "$@" --45Z9DzgjV8m4Oswq--