]> git.wh0rd.org Git - home.git/commitdiff
do not assume scripts in $PWD
authorMike Frysinger <vapier@gentoo.org>
Wed, 31 Jul 2013 21:23:12 +0000 (17:23 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 31 Jul 2013 21:23:12 +0000 (17:23 -0400)
.bin/cros-board

index 6b75d74870ba7424733d0a742512674c4241b19e..c8eb4ae5c09cf4334e0d5406c3a69ae7b832c359 100755 (executable)
@@ -95,17 +95,20 @@ fi
 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