From: Dobrica Pavlinusic Date: Sun, 26 Sep 2010 19:39:09 +0000 (+0200) Subject: specify image as parameter X-Git-Url: http://git.rot13.org/?p=android-command-line.git;a=commitdiff_plain;h=db3565ba61c0bbe976c1e158c07c99ac97368270 specify image as parameter --- diff --git a/qemu-mount.sh b/qemu-mount.sh index 01202f4..d2425d7 100755 --- a/qemu-mount.sh +++ b/qemu-mount.sh @@ -1,6 +1,7 @@ #!/bin/sh image=emulator/android-x86-1.6-r2.boot.qcow2 +test ! -z "$1" && image=$1 if mount | grep /tmp/qemu ; then echo "umount" @@ -13,7 +14,7 @@ fi echo "mount $image" -qemu-nbd emulator/android-x86-1.6-r2.boot.qcow2 & +qemu-nbd $image & sudo nbd-client localhost 1024 /dev/nbd0 mkdir /tmp/qemu echo "wait for partitions"