rsync and reflash latest cyanogen build
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 1 Oct 2010 21:49:54 +0000 (23:49 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 1 Oct 2010 21:49:54 +0000 (23:49 +0200)
cyanogen-reflash.sh [new file with mode: 0755]

diff --git a/cyanogen-reflash.sh b/cyanogen-reflash.sh
new file mode 100755 (executable)
index 0000000..1565520
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh -x
+
+dir=`date +%Y-%m-%d`
+dir=cyanogen
+
+rsync --progress -v android:/srv/cyanogen/out/target/product/dream_sapphire/{boot.img,recovery.img,system.img,android-info.txt} $dir
+adb reboot-bootloader
+sudo ./fastboot devices
+sudo sh -c "ANDROID_PRODUCT_OUT=$dir/ ./fastboot flashall"