From 018b5b62c46b55b395282bd1f4515b602d24be5c Mon Sep 17 00:00:00 2001 From: eyeballer Date: Tue, 10 Apr 2012 15:45:29 -0400 Subject: [PATCH] backuptool.sh: Improve check for whether /system is mounted. Fixes unable to flash an update.zip over a formatted /system Change-Id: Ia163262585cb2ef414c6996837834c512d774243 --- prebuilt/common/bin/backuptool.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prebuilt/common/bin/backuptool.sh b/prebuilt/common/bin/backuptool.sh index fd62159f..8f613af7 100755 --- a/prebuilt/common/bin/backuptool.sh +++ b/prebuilt/common/bin/backuptool.sh @@ -9,14 +9,14 @@ export V=9 # Mount /system if it is not already mounted mount_system() { -if [ ! -f "$S/build.prop" ]; then +if ! mount | grep -q " $S " ; then mount $S fi } # Unmount /system unless it is already unmounted umount_system() { -if [ -f "$S/build.prop" ]; then +if mount | grep -q " $S " ; then umount $S fi }