qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Jim C. Brown" <jbrown106@phreaker.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] updated vqemu
Date: Thu, 24 Jun 2004 16:09:21 -0400	[thread overview]
Message-ID: <20040624200921.GA31765@jbrown.mylinuxbox.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 766 bytes --]

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.

[-- Attachment #2: vqemu --]
[-- Type: text/plain, Size: 1866 bytes --]

#! /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 "$@"


                 reply	other threads:[~2004-06-24 20:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040624200921.GA31765@jbrown.mylinuxbox.org \
    --to=jbrown106@phreaker.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).