source: MondoRescue/branches/stable/tools/mkqemu@ 1340

Last change on this file since 1340 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
Line 
1#!/bin/bash
2#
3# $Id$
4#
5# Call virtual machine with qemu
6#
7(
8dname=`dirname $0`
9prem=`echo $dname |cut -c1`
10if [ _${prem} = _"/" ]; then
11 export TOOLHOME=$dname
12else
13 export TOOLHOME=${PWD}/$dname
14fi
15
16. $TOOLHOME/common-env
17. $TOOLHOME/distro-env
18. $TOOLHOME/qemu-env
19
20if [ _"$1" = _"" ]; then
21 echo "Syntax: qemu vm"
22 exit -1
23else
24 m=$1
25fi
26
27if [ _"$QEMUAPP" != _"" ]; then
28 $qemucmd -m 256 $QEMUOPT -append "$QEMUAPP" -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
29else
30 $qemucmd -m 256 $QEMUOPT -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
31fi
32) 2>&1 | tee /tmp/mkqemu.log
Note: See TracBrowser for help on using the repository browser.