source: branches/stable/tools/qemu-env @ 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: 511 bytes
Line 
1#!/bin/bash
2#
3# Creates common environment for QEMU
4#
5# $Id: common-env 882 2006-10-08 09:48:30Z bruno $
6#
7
8# Adapt to your needs
9if [ _"$sp" = _"" ]; then
10    export sp=2222
11fi
12
13export ipvm=10.0.2.15
14export iph=10.0.2.2
15
16ARCH=`/bin/arch`
17if [ $ARCH = "x86_64" ]; then
18    qemucmd32=/usr/bin/qemu-system-i386
19    qemucmd64=/usr/bin/qemu
20else
21    qemucmd32=/usr/bin/qemu
22    qemucmd64=/usr/bin/qemu-system-x86_64
23fi
24
25echo $m | grep -q '_64$'
26if [ $? -eq 0 ]; then
27    qemucmd=$qemucmd64
28else
29    qemucmd=$qemucmd32
30fi
31export qemucmd
Note: See TracBrowser for help on using the repository browser.