Permalink
Browse files

vbox: update script

  • Loading branch information...
1 parent 3e4208c commit 77f75f1db03dc23bff521643ee79a8c3e32083ac @gxben gxben committed Dec 23, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 scripts/vbox
  2. +1 −1 utils/openbricks.vbox
View
@@ -16,12 +16,12 @@ ISO_IMAGE="$ROOT/$1"
ISO_UUID=$(uuid)
VBOX_IMAGE=/tmp/openbricks.vbox
+[ -f $VBOX_IMAGE ] && rm -f $VBOX_IMAGE
cp -P utils/openbricks.vbox $VBOX_IMAGE
sed -i "s%__UUID__%$ISO_UUID%" $VBOX_IMAGE
sed -i "s%__LOCATION__%$ISO_IMAGE%" $VBOX_IMAGE
vboxmanage list vms | grep -q OpenBricks
[ $? -ne 0 ] && vboxmanage registervm $VBOX_IMAGE
virtualbox --startvm $VBOX_IMAGE
-rm $VBOX_IMAGE
exit 0
View
@@ -145,7 +145,7 @@
<StorageControllers>
<StorageController name="IDE Controller" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true">
<AttachedDevice passthrough="false" type="DVD" port="0" device="0">
- <Image uuid="{06c71f14-a393-4e17-bed4-1334e66fdc0d}"/>
+ <Image uuid="{__UUID__}"/>
</AttachedDevice>
<AttachedDevice passthrough="false" type="DVD" port="1" device="0"/>
</StorageController>

0 comments on commit 77f75f1

Please sign in to comment.