Last change
on this file since 1453 was 1340, checked in by Bruno Cornec, 17 years ago |
Merging modifs from 2.2.2 on tools
|
-
Property svn:executable
set to
*
|
File size:
591 bytes
|
Rev | Line | |
---|
[440] | 1 | #!/bin/bash
|
---|
| 2 | #
|
---|
| 3 | # $Id$
|
---|
| 4 | #
|
---|
[556] | 5 | # Call virtual machine with qemu
|
---|
[440] | 6 | #
|
---|
[1334] | 7 | (
|
---|
| 8 | dname=`dirname $0`
|
---|
| 9 | prem=`echo $dname |cut -c1`
|
---|
| 10 | if [ _${prem} = _"/" ]; then
|
---|
| 11 | export TOOLHOME=$dname
|
---|
| 12 | else
|
---|
| 13 | export TOOLHOME=${PWD}/$dname
|
---|
| 14 | fi
|
---|
[440] | 15 |
|
---|
[1334] | 16 | . $TOOLHOME/common-env
|
---|
| 17 | . $TOOLHOME/distro-env
|
---|
| 18 | . $TOOLHOME/qemu-env
|
---|
| 19 |
|
---|
[1042] | 20 | if [ _"$1" = _"" ]; then
|
---|
[556] | 21 | echo "Syntax: qemu vm"
|
---|
[440] | 22 | exit -1
|
---|
| 23 | else
|
---|
[556] | 24 | m=$1
|
---|
[440] | 25 | fi
|
---|
| 26 |
|
---|
[1340] | 27 | if [ _"$QEMUAPP" != _"" ]; then
|
---|
| 28 | $qemucmd -m 256 $QEMUOPT -append "$QEMUAPP" -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
|
---|
| 29 | else
|
---|
| 30 | $qemucmd -m 256 $QEMUOPT -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
|
---|
| 31 | fi
|
---|
[1334] | 32 | ) 2>&1 | tee /tmp/mkqemu.log
|
---|
Note:
See
TracBrowser
for help on using the repository browser.