lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 3432ddb was fa33ac4, checked in by Martin Decky <martin@…>, 13 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 |
|
|---|
| 3 | if [ -z "${QEMU_BINARY}" ] ; then
|
|---|
| 4 | QEMU_BINARY="`which --tty-only qemu 2> /dev/null`"
|
|---|
| 5 | fi
|
|---|
| 6 |
|
|---|
| 7 | if [ -z "${QEMU_BINARY}" ] ; then
|
|---|
| 8 | QEMU_BINARY="`which --tty-only qemu-system-i386 2> /dev/null`"
|
|---|
| 9 | fi
|
|---|
| 10 |
|
|---|
| 11 | if [ -z "${QEMU_BINARY}" ] ; then
|
|---|
| 12 | echo "QEMU binary not found"
|
|---|
| 13 | fi
|
|---|
| 14 |
|
|---|
| 15 | DISK_IMG=hdisk.img
|
|---|
| 16 |
|
|---|
| 17 | # Create a disk image if it does not exist
|
|---|
| 18 | if [ ! -f "$DISK_IMG" ]; then
|
|---|
| 19 | tools/mkfat.py 1048576 uspace/dist/data "$DISK_IMG"
|
|---|
| 20 | fi
|
|---|
| 21 |
|
|---|
| 22 | "${QEMU_BINARY}" "$@" -m 32 -hda "$DISK_IMG" -cdrom image.iso -boot d
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.