diff options
author | Chirayu Desai <cdesai@cyanogenmod.org> | 2012-12-13 19:36:37 +0530 |
---|---|---|
committer | Chirayu Desai <cdesai@cyanogenmod.org> | 2012-12-13 19:36:37 +0530 |
commit | 700fc8f6c44e0f1a65b6dea0ffaf702b9ab6c378 (patch) | |
tree | 8760249537eeeb4b0a54e1167c8ad6fc10ba659a | |
parent | 98e3d9757e9d6f90a4fb636442e6ab85bd89946e (diff) | |
download | vendor_replicant-700fc8f6c44e0f1a65b6dea0ffaf702b9ab6c378.zip vendor_replicant-700fc8f6c44e0f1a65b6dea0ffaf702b9ab6c378.tar.gz vendor_replicant-700fc8f6c44e0f1a65b6dea0ffaf702b9ab6c378.tar.bz2 |
backuptool: only restore from same major.minor version
Change-Id: I63113fa9b3cbc6b0e1b3df75ef7dfb3160ee5062
-rw-r--r-- | prebuilt/common/bin/backuptool.functions | 2 | ||||
-rwxr-xr-x | prebuilt/common/bin/backuptool.sh | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/prebuilt/common/bin/backuptool.functions b/prebuilt/common/bin/backuptool.functions index 833460f..ef8479a 100644 --- a/prebuilt/common/bin/backuptool.functions +++ b/prebuilt/common/bin/backuptool.functions @@ -5,7 +5,7 @@ export C=/tmp/backupdir export S=/system -export V=9 +export V=10.1 backup_file() { if [ -e "$1" ]; then diff --git a/prebuilt/common/bin/backuptool.sh b/prebuilt/common/bin/backuptool.sh index 6ba1323..68b1ff8 100755 --- a/prebuilt/common/bin/backuptool.sh +++ b/prebuilt/common/bin/backuptool.sh @@ -5,7 +5,7 @@ export C=/tmp/backupdir export S=/system -export V=10 +export V=10.1 # Preserve /system/addon.d in /tmp/addon.d preserve_addon_d() { @@ -20,10 +20,10 @@ restore_addon_d() { rm -rf /tmp/addon.d/ } -# Proceed only if /system is the expected major version +# Proceed only if /system is the expected major and minor version check_prereq() { if ( ! grep -q "^ro.cm.version=$V.*" /system/build.prop ); then - echo "Not backing up files from incompatible version." + echo "Not backing up files from incompatible version: $V" exit 127 fi } |