summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkiso.chang <kiso.chang@samsung.com>2021-02-09 14:54:15 +0900
committerkiso.chang <kiso.chang@samsung.com>2021-02-09 14:57:19 +0900
commitd3ecdc8d4230a2d52b25b944e58b8a677da5486b (patch)
tree05a903bac48be79f48a630d17aef0254c706e06a
parentd6d69af116c57dd90cbb7ae275150a84fa1670e8 (diff)
downloadfactory-reset-tizen_6.0_hotfix.tar.gz
factory-reset-tizen_6.0_hotfix.tar.bz2
factory-reset-tizen_6.0_hotfix.zip
- run-factory-reset.sh Change-Id: I08ee63ad7319d6730891942a85465ffaeea4b728 Signed-off-by: kiso.chang <kiso.chang@samsung.com>
-rwxr-xr-xscript/run-factory-reset.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/script/run-factory-reset.sh b/script/run-factory-reset.sh
index 8f3b279..cdbd185 100755
--- a/script/run-factory-reset.sh
+++ b/script/run-factory-reset.sh
@@ -111,19 +111,19 @@ check_fail() {
# reboot and retry
/bin/sync
/sbin/reboot
- fisp
+ fi
}
# mount and umount partitions
fs_ready() {
# data in microsd and usb(otg) storage should be preserved.
- /bin/umount -lf ${OPT}/storage/sdcard
- /bin/umount -lf ${OPT}/media/*
+ /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/*
+ /bin/umount -lf /${OPT}storage/sdcard
+ /bin/umount -lf /${OPT}media/*
# modem binary images should be preserved.
- /bin/umount -lf ${OPT}/modem
+ /bin/umount -lf /${OPT}modem
# phone usr partition should be reset
/bin/mkdir -p $USRDATADIR
/bin/mount $USRDATADIR