Changeset fa33ac4 in mainline for contrib/conf/ia32-qe.sh


Ignore:
Timestamp:
2013-03-20T16:56:07Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
119b46e
Parents:
f597bc4
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/conf/ia32-qe.sh

    rf597bc4 rfa33ac4  
    11#!/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
    214
    315DISK_IMG=hdisk.img
     
    820fi
    921
    10 qemu $@ -m 32 -hda "$DISK_IMG" -cdrom image.iso -boot d
     22"${QEMU_BINARY}" "$@" -m 32 -hda "$DISK_IMG" -cdrom image.iso -boot d
Note: See TracChangeset for help on using the changeset viewer.