source: branches/stable/tools/mkqemu @ 1334

Last change on this file since 1334 was 1334, checked in by bruno, 12 years ago
  • Add a test env (local for laptop + QEMU based)
  • creates qemu-env for reuse of code
  • Property svn:executable set to *
File size: 457 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
27$qemucmd -m 256 $QEMUOPT -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
28) 2>&1 | tee /tmp/mkqemu.log
Note: See TracBrowser for help on using the repository browser.