aboutsummaryrefslogtreecommitdiff
path: root/recovery/D6x02.sh
diff options
context:
space:
mode:
authorGiulio Cervera <giulio.cervera@cyanogenmod.org>2014-04-26 16:01:41 +0200
committerGiulio Cervera <giulio.cervera@cyanogenmod.org>2014-04-27 02:10:43 +0200
commit604472bce94efef6fdeae8cc795507007c4325b3 (patch)
tree943d9b6467758b3ee51cd3a5a710e50d61aab0eb /recovery/D6x02.sh
Initial Shinano import
based on rhine-common 7e2a33e
Diffstat (limited to 'recovery/D6x02.sh')
-rw-r--r--recovery/D6x02.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/recovery/D6x02.sh b/recovery/D6x02.sh
new file mode 100644
index 0000000..0bdcfe0
--- /dev/null
+++ b/recovery/D6x02.sh
@@ -0,0 +1,11 @@
+#!/sbin/sh
+
+mkdir -p /lta-label
+mount -o ro /dev/block/platform/msm_sdcc.1/by-name/LTALabel /lta-label
+ls lta-label/*.html | grep -q c6[89]02
+if [ $? -eq 0 ]; then
+ mount /dev/block/platform/msm_sdcc.1/by-name/system /system
+ cp /system/etc/firmware/c6x02/* /system/etc/firmware/
+ umount /system
+fi
+umount /lta-label