From db3565ba61c0bbe976c1e158c07c99ac97368270 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 26 Sep 2010 21:39:09 +0200 Subject: [PATCH] specify image as parameter --- qemu-mount.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.20.1