diff options
author | Ross Burton <ross@openedhand.com> | 2006-12-05 12:09:24 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2006-12-05 12:09:24 +0000 |
commit | f63e7159da13e02336431e01358f8f03fdad447b (patch) | |
tree | 26f455961e90481f0a7ed6f62738e76a78d530a8 /scripts | |
parent | 4cf2d71a16081bb27552e69ce483c0762b726b66 (diff) | |
download | poky-f63e7159da13e02336431e01358f8f03fdad447b.tar.gz |
Remove bashism
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1003 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/qemu-ifup | 2 | ||||
-rwxr-xr-x | scripts/runqemu | 28 |
2 files changed, 15 insertions, 15 deletions
diff --git a/scripts/qemu-ifup b/scripts/qemu-ifup index 8abe35f57b..af081fb4d7 100755 --- a/scripts/qemu-ifup +++ b/scripts/qemu-ifup | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | IFCONFIG=`which ifconfig` | 3 | IFCONFIG=`which ifconfig` |
4 | if [ "x$IFCONFIG" == "x" ]; then | 4 | if [ "x$IFCONFIG" = "x" ]; then |
5 | # better than nothing... | 5 | # better than nothing... |
6 | IFCONFIG=/sbin/ifconfig | 6 | IFCONFIG=/sbin/ifconfig |
7 | fi | 7 | fi |
diff --git a/scripts/runqemu b/scripts/runqemu index b0273f4c38..63ea856b65 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | if [ "x$BUILDDIR" == "x" ]; then | 3 | if [ "x$BUILDDIR" = "x" ]; then |
4 | echo "You need to source poky-init-build-env before running this script" | 4 | echo "You need to source poky-init-build-env before running this script" |
5 | exit 1 | 5 | exit 1 |
6 | fi | 6 | fi |
@@ -34,17 +34,17 @@ if [ "x$4" != "x" ]; then | |||
34 | HDIMAGE=$4 | 34 | HDIMAGE=$4 |
35 | fi | 35 | fi |
36 | 36 | ||
37 | if [ "$MACHINE" == "qemuarm" -o "$MACHINE" == "spitz" -o "$MACHINE" == "borzoi" -o "$MACHINE" == "akita" ]; then | 37 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" ]; then |
38 | QEMU=`which qemu-system-arm` | 38 | QEMU=`which qemu-system-arm` |
39 | if [ "x$ZIMAGE" == "x" ]; then | 39 | if [ "x$ZIMAGE" = "x" ]; then |
40 | ZIMAGE=$BUILDDIR/tmp/deploy/images/zImage-$MACHINE.bin | 40 | ZIMAGE=$BUILDDIR/tmp/deploy/images/zImage-$MACHINE.bin |
41 | fi | 41 | fi |
42 | CROSSPATH=$BUILDDIR/tmp/cross/arm-poky-linux/bin | 42 | CROSSPATH=$BUILDDIR/tmp/cross/arm-poky-linux/bin |
43 | fi | 43 | fi |
44 | 44 | ||
45 | if [ "$MACHINE" == "qemux86" ]; then | 45 | if [ "$MACHINE" = "qemux86" ]; then |
46 | QEMU=`which qemu` | 46 | QEMU=`which qemu` |
47 | if [ "x$ZIMAGE" == "x" ]; then | 47 | if [ "x$ZIMAGE" = "x" ]; then |
48 | ZIMAGE=$BUILDDIR/tmp/deploy/images/bzImage-$MACHINE.bin | 48 | ZIMAGE=$BUILDDIR/tmp/deploy/images/bzImage-$MACHINE.bin |
49 | fi | 49 | fi |
50 | CROSSPATH=$BUILDDIR/tmp/cross/i586-poky-linux/bin | 50 | CROSSPATH=$BUILDDIR/tmp/cross/i586-poky-linux/bin |
@@ -65,34 +65,34 @@ else | |||
65 | echo "Warning: distccd not present, no distcc support loaded" | 65 | echo "Warning: distccd not present, no distcc support loaded" |
66 | fi | 66 | fi |
67 | 67 | ||
68 | if [ "$MACHINE" == "qemuarm" ]; then | 68 | if [ "$MACHINE" = "qemuarm" ]; then |
69 | if [ "$TYPE" == "ext2" ]; then | 69 | if [ "$TYPE" = "ext2" ]; then |
70 | if [ "x$HDIMAGE" == "x" ]; then | 70 | if [ "x$HDIMAGE" = "x" ]; then |
71 | HDIMAGE=$BUILDDIR/tmp/deploy/images/oh-image-sdk-qemuarm.ext2 | 71 | HDIMAGE=$BUILDDIR/tmp/deploy/images/oh-image-sdk-qemuarm.ext2 |
72 | fi | 72 | fi |
73 | QEMUOPTIONS="-append \"root=/dev/sda mem=$QEMU_MEMORY\" $QEMU_NETWORK_CMD -M versatilepb -hda $HDIMAGE -usb -usbdevice wacom-tablet" | 73 | QEMUOPTIONS="-append \"root=/dev/sda mem=$QEMU_MEMORY\" $QEMU_NETWORK_CMD -M versatilepb -hda $HDIMAGE -usb -usbdevice wacom-tablet" |
74 | fi | 74 | fi |
75 | if [ "$TYPE" == "nfs" ]; then | 75 | if [ "$TYPE" = "nfs" ]; then |
76 | dd if=/dev/zero of=/tmp/blank bs=1024 count=8192 | 76 | dd if=/dev/zero of=/tmp/blank bs=1024 count=8192 |
77 | QEMUOPTIONS="-append \"root=/dev/nfs nfsroot=192.168.7.1:/srv/nfs/qemuarm rw $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD -M versatilepb -hda /tmp/blank" | 77 | QEMUOPTIONS="-append \"root=/dev/nfs nfsroot=192.168.7.1:/srv/nfs/qemuarm rw $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD -M versatilepb -hda /tmp/blank" |
78 | fi | 78 | fi |
79 | fi | 79 | fi |
80 | 80 | ||
81 | if [ "$MACHINE" == "qemux86" ]; then | 81 | if [ "$MACHINE" = "qemux86" ]; then |
82 | if [ "$TYPE" == "ext2" ]; then | 82 | if [ "$TYPE" = "ext2" ]; then |
83 | if [ "x$HDIMAGE" == "x" ]; then | 83 | if [ "x$HDIMAGE" = "x" ]; then |
84 | HDIMAGE=$BUILDDIR/tmp/deploy/images/oh-image-pda-qemux86.ext2 | 84 | HDIMAGE=$BUILDDIR/tmp/deploy/images/oh-image-pda-qemux86.ext2 |
85 | fi | 85 | fi |
86 | # video=vesafb:1024x768-32@86 | 86 | # video=vesafb:1024x768-32@86 |
87 | QEMUOPTIONS="-std-vga -append \"root=/dev/hda mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD -hda $HDIMAGE -usb -usbdevice wacom-tablet" | 87 | QEMUOPTIONS="-std-vga -append \"root=/dev/hda mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD -hda $HDIMAGE -usb -usbdevice wacom-tablet" |
88 | fi | 88 | fi |
89 | if [ "$TYPE" == "nfs" ]; then | 89 | if [ "$TYPE" = "nfs" ]; then |
90 | dd if=/dev/zero of=/tmp/blank bs=1024 count=8192 | 90 | dd if=/dev/zero of=/tmp/blank bs=1024 count=8192 |
91 | QEMUOPTIONS="-std-vga -append \"root=/dev/nfs nfsroot=192.168.7.1:/srv/nfs/qemux86 rw $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD -hda /tmp/blank" | 91 | QEMUOPTIONS="-std-vga -append \"root=/dev/nfs nfsroot=192.168.7.1:/srv/nfs/qemux86 rw $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD -hda /tmp/blank" |
92 | fi | 92 | fi |
93 | fi | 93 | fi |
94 | 94 | ||
95 | if [ "x$QEMUOPTIONS" == "x" ]; then | 95 | if [ "x$QEMUOPTIONS" = "x" ]; then |
96 | echo "Sorry, unable to support this configuration" | 96 | echo "Sorry, unable to support this configuration" |
97 | exit 1 | 97 | exit 1 |
98 | fi | 98 | fi |