summaryrefslogtreecommitdiffstats
path: root/updater.sh
diff options
context:
space:
mode:
authorjt1134 <jt1134@gmail.com>2012-08-12 22:06:00 -0500
committerjt1134 <jt1134@gmail.com>2012-08-12 22:06:00 -0500
commitbd5a67000ff7d4890063e14a042950538404469d (patch)
tree5cedfd8ce1c95f51e1a65d9de15a0b0bb0a369dc /updater.sh
parent459c6e0a71227753301490458cce6d83c69c74a9 (diff)
downloaddevice_samsung_aries-common-bd5a67000ff7d4890063e14a042950538404469d.zip
device_samsung_aries-common-bd5a67000ff7d4890063e14a042950538404469d.tar.gz
device_samsung_aries-common-bd5a67000ff7d4890063e14a042950538404469d.tar.bz2
updater.sh: check multiple locations for nv_data.bin backup
Infuse4G stores nv_data.bin at efs/root/afs/settings/nv_data.bin instead of /efs/nv_data.bin Change-Id: Icaeecb4ab5c539d6fdbc10c10802034cb4a0cb0d
Diffstat (limited to 'updater.sh')
-rwxr-xr-xupdater.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/updater.sh b/updater.sh
index 448e459..b6e0dd5 100755
--- a/updater.sh
+++ b/updater.sh
@@ -212,7 +212,8 @@ elif /tmp/busybox test -e /dev/block/mtdblock0 ; then
if $IS_GSM ; then
# restore efs backup
- if /tmp/busybox test -e /sdcard/backup/efs/nv_data.bin ; then
+ if /tmp/busybox test -e /sdcard/backup/efs/nv_data.bin || \
+ /tmp/busybox test -e /sdcard/backup/efs/root/afs/settings/nv_data.bin ; then
/tmp/busybox umount -l /efs
/tmp/erase_image efs
/tmp/busybox mkdir -p /efs