diff options
author | Austen Dicken <cvpcsm@gmail.com> | 2012-07-15 16:26:26 -0500 |
---|---|---|
committer | Austen Dicken <cvpcsm@gmail.com> | 2012-07-17 14:50:27 -0500 |
commit | 0897504c1a0a6370e5e3d83f82d99f214f3db9ac (patch) | |
tree | 56a1133d46c89d805094d1b7a28842b52c169dee /prebuilt/common/bin | |
parent | 45d3d8266e9c5502cbe1eb0d858a4cd992941897 (diff) | |
download | vendor_replicant-0897504c1a0a6370e5e3d83f82d99f214f3db9ac.zip vendor_replicant-0897504c1a0a6370e5e3d83f82d99f214f3db9ac.tar.gz vendor_replicant-0897504c1a0a6370e5e3d83f82d99f214f3db9ac.tar.bz2 |
remove mount/unmount capabilities from backuptool
backuptool should not be messing with whether /system is mounted
or not as it screws up the expectations of other scripts run
in the install process. instead the mounting/unmounting
functionality has been moved to ota_from_target_files
Change-Id: I0711afd517638e7d0a0c39369d3a776748245dd2
Diffstat (limited to 'prebuilt/common/bin')
-rwxr-xr-x | prebuilt/common/bin/backuptool.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/prebuilt/common/bin/backuptool.sh b/prebuilt/common/bin/backuptool.sh index fbedf93..6ba1323 100755 --- a/prebuilt/common/bin/backuptool.sh +++ b/prebuilt/common/bin/backuptool.sh @@ -7,20 +7,6 @@ export C=/tmp/backupdir export S=/system export V=10 -# Mount /system if it is not already mounted -mount_system() { -if ! mount | grep -q " $S " ; then - mount $S -fi -} - -# Unmount /system unless it is already unmounted -umount_system() { -if mount | grep -q " $S " ; then - umount $S -fi -} - # Preserve /system/addon.d in /tmp/addon.d preserve_addon_d() { mkdir -p /tmp/addon.d/ @@ -38,7 +24,6 @@ restore_addon_d() { check_prereq() { if ( ! grep -q "^ro.cm.version=$V.*" /system/build.prop ); then echo "Not backing up files from incompatible version." - umount_system exit 127 fi } @@ -53,22 +38,18 @@ done case "$1" in backup) mkdir -p $C - mount_system check_prereq preserve_addon_d run_stage pre-backup run_stage backup run_stage post-backup - umount_system ;; restore) - mount_system check_prereq run_stage pre-restore run_stage restore run_stage post-restore restore_addon_d - umount_system rm -rf $C sync ;; |