diff options
-rwxr-xr-x | script/run-factory-reset.sh | 12 |
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 |