From 131f37d7f6d99c88ab82087b66172b9ccb39704b Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Thu, 24 Sep 2020 13:38:02 +0900 Subject: Revert "Provide debug mode before recovery" - system-data is no longer mounted - This reverts commit 0ac7ac2e0e55af61e13452c625fca4725e0ade22. Change-Id: I58057fcc6e95cf555c87ab667e2e1e0c1e993cb1 Signed-off-by: Kichan Kwon --- scripts/recovery-init.in | 22 +--------------------- 1 file changed, 1 insertion(+), 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}" -- cgit v1.2.3