Last change
on this file since 1334 was
1334,
checked in by Bruno Cornec, 14 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 |
---|
9 | if [ _"$sp" = _"" ]; then |
---|
10 | export sp=2222 |
---|
11 | fi |
---|
12 | |
---|
13 | export ipvm=10.0.2.15 |
---|
14 | export iph=10.0.2.2 |
---|
15 | |
---|
16 | ARCH=`/bin/arch` |
---|
17 | if [ $ARCH = "x86_64" ]; then |
---|
18 | qemucmd32=/usr/bin/qemu-system-i386 |
---|
19 | qemucmd64=/usr/bin/qemu |
---|
20 | else |
---|
21 | qemucmd32=/usr/bin/qemu |
---|
22 | qemucmd64=/usr/bin/qemu-system-x86_64 |
---|
23 | fi |
---|
24 | |
---|
25 | echo $m | grep -q '_64$' |
---|
26 | if [ $? -eq 0 ]; then |
---|
27 | qemucmd=$qemucmd64 |
---|
28 | else |
---|
29 | qemucmd=$qemucmd32 |
---|
30 | fi |
---|
31 | export qemucmd |
---|
Note: See
TracBrowser
for help on using the repository browser.