diff options
author | Kichan Kwon <k_c.kwon@samsung.com> | 2020-09-24 13:38:02 +0900 |
---|---|---|
committer | Kichan Kwon <k_c.kwon@samsung.com> | 2020-09-25 15:26:06 +0900 |
commit | 131f37d7f6d99c88ab82087b66172b9ccb39704b (patch) | |
tree | c767abe166a2feb97ee2c06551ab0258c8a00364 | |
parent | 89da4605ef9c9f987a08a389030bfb5c16228fc3 (diff) | |
download | system-recovery-131f37d7f6d99c88ab82087b66172b9ccb39704b.tar.gz system-recovery-131f37d7f6d99c88ab82087b66172b9ccb39704b.tar.bz2 system-recovery-131f37d7f6d99c88ab82087b66172b9ccb39704b.zip |
Revert "Provide debug mode before recovery"
- system-data is no longer mounted
- This reverts commit 0ac7ac2e0e55af61e13452c625fca4725e0ade22.
Change-Id: I58057fcc6e95cf555c87ab667e2e1e0c1e993cb1
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
-rw-r--r-- | scripts/recovery-init.in | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/scripts/recovery-init.in b/scripts/recovery-init.in index 7f7dd9e..c0cb159 100644 --- a/scripts/recovery-init.in +++ b/scripts/recovery-init.in @@ -88,24 +88,6 @@ mount_partitions() { mount_usb_partitions } -check_debug_file() { - echo "check debug files" - DEBUG_MODE_FILE=${FAKE_ROOT}/opt/usr/.recovery_debug - if [ -f ${DEBUG_MODE_FILE} ]; then - DEBUG_MODE_FILE_OWNER=$(${LS} -l ${DEBUG_MODE_FILE} | ${CUT} -d " " -f 3) - if [ "${DEBUG_MODE_FILE_OWNER}" = "0" ]; then - echo "Enter recovery debug mode" - echo "If you want to continue recovery, please remove ${DEBUG_MODE_FILE}" - # Wait until debug mode file is removed - while [ -f ${DEBUG_MODE_FILE} ]; do - sleep 3 - done - else - echo "Warning: somebody make non-root debug mode file... ignore it" - fi - fi -} - #------------------------------------------------ # umount_usb_partitions #------------------------------------------------ @@ -154,9 +136,7 @@ echo "Starting system recovery." mount_partitions # For debugging - It should be deleted on Release -/sbin/agetty -l /bin/sh -n --keep-baud 115200,38400,9600 ttyS0 linux & - -check_debug_file +/sbin/agetty -l /bin/sh -n --keep-baud 115200,38400,9600 ttyS1 linux & [ -x "${SYSTEM_RECOVERY_GUI}" ] && "${SYSTEM_RECOVERY_GUI}" & [ -x "${SYSTEM_RECOVERY}" ] && "${SYSTEM_RECOVERY}" |