summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscript/run-factory-reset.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/script/run-factory-reset.sh b/script/run-factory-reset.sh
index 54a714b..8f3b279 100755
--- a/script/run-factory-reset.sh
+++ b/script/run-factory-reset.sh
@@ -111,15 +111,17 @@ check_fail() {
# reboot and retry
/bin/sync
/sbin/reboot
- fi
+ fisp
}
# mount and umount partitions
fs_ready() {
-# data in microsd should be preserved.
+# data in microsd and usb(otg) storage should be preserved.
/bin/umount -lf ${OPT}/storage/sdcard
+ /bin/umount -lf ${OPT}/media/*
#for encryption. If encrypted, it is mounted one more time as encryptfs.
/bin/umount -lf ${OPT}/storage/sdcard
+ /bin/umount -lf ${OPT}/media/*
# modem binary images should be preserved.
/bin/umount -lf ${OPT}/modem
# phone usr partition should be reset