source: mainline/contrib/conf/ia32-qe.sh@ 8abcf4e

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 8abcf4e was fa33ac4, checked in by Martin Decky <martin@…>, 12 years ago

make QEMU scripts compatible with newer distros (that lack the legacy "qemu" binary)

  • Property mode set to 100755
File size: 491 bytes
Line 
1#!/bin/sh
2
3if [ -z "${QEMU_BINARY}" ] ; then
4 QEMU_BINARY="`which --tty-only qemu 2> /dev/null`"
5fi
6
7if [ -z "${QEMU_BINARY}" ] ; then
8 QEMU_BINARY="`which --tty-only qemu-system-i386 2> /dev/null`"
9fi
10
11if [ -z "${QEMU_BINARY}" ] ; then
12 echo "QEMU binary not found"
13fi
14
15DISK_IMG=hdisk.img
16
17# Create a disk image if it does not exist
18if [ ! -f "$DISK_IMG" ]; then
19 tools/mkfat.py 1048576 uspace/dist/data "$DISK_IMG"
20fi
21
22"${QEMU_BINARY}" "$@" -m 32 -hda "$DISK_IMG" -cdrom image.iso -boot d
Note: See TracBrowser for help on using the repository browser.