source: branches/2.2.2/tools/mkqemu

Last change on this file was 899, checked in by bruno, 13 years ago
  • src directory used in Makefile
  • new announce
  • fix for italian mirror
  • first try for an x86_64 generation

-busybox handles modules again (should fix some bugs)

  • Property svn:executable set to *
File size: 545 bytes
Line 
1#!/bin/bash
2#
3# $Id$
4#
5# Call virtual machine with qemu
6#
7
8if [ _"$1" == _"" ]; then
9    echo "Syntax: qemu vm"
10    exit -1
11else
12    m=$1
13fi
14
15ipvm=10.0.2.15
16
17if [ _"$sp" = _"" ]; then
18    sp=2223
19fi
20
21ARCH=`/bin/arch`
22if [ $ARCH == "x86_64" ]; then
23    qemucmd32=/usr//bin/qemu-system-i386
24    qemucmd64=/usr//bin/qemu
25else
26    qemucmd32=/usr//bin/qemu
27    qemucmd64=/usr//bin/qemu-system-x86_64
28fi
29
30echo $m | grep -q '_64$'
31if [ $? -ne 0 ]; then
32     qemucmd=$qemucmd32
33else
34     qemucmd=$qemucmd64
35fi
36$qemucmd -m 256 $QEMUOPT -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
Note: See TracBrowser for help on using the repository browser.