cd "${IMAGES}"
rm -rf $(ls -td1R `find -mindepth 1 -maxdepth 1 -type d` | sed -e 1d -e 2d)
+d="~/trunk/src/scripts"
+BUILD_IMG="${d}/${BUILD_IMG#.}"
+IMG_TO_USB="${d}/${IMG_TO_USB#.}"
cat <<EOF
### LIVE
${IMG_TO_USB}
### KVM
-./image_to_vm.sh --board=${BOARD} --from=../build/images/${BOARD}/latest
+${d}/image_to_vm.sh --board=${BOARD} --from=../build/images/${BOARD}/latest
kvm -m 1024 -vga std -net nic,model=virtio -net user,hostfwd=tcp::9222-:22 -hda ~/chromiumos/src/build/images/${BOARD}/latest/chromiumos_qemu_image.bin
### RECOVERY
-./mod_image_for_recovery.sh --board=${BOARD}
+${d}/mod_image_for_recovery.sh --board=${BOARD}
${IMG_TO_USB} --image_name=recovery_image.bin
### FACTORY