From 12540322c74fabdef0e56a0eaeaf1835d5f2133d Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Fri, 25 Sep 2020 14:20:10 +0900 Subject: [PATCH] Use /dev/console instead of ttyS1 - Console-connected serial port number depends on device - With using /dev/console, we don't have to care which port is connected - Reference - https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/serial-console.rst Change-Id: Ic4313d33e49d106da82bf2d03fec865487e8ffee Signed-off-by: Kichan Kwon --- scripts/recovery-init.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/recovery-init.in b/scripts/recovery-init.in index 280c968..d49bd80 100644 --- a/scripts/recovery-init.in +++ b/scripts/recovery-init.in @@ -91,7 +91,7 @@ echo "Starting system recovery." mount_usb_partitions # For debugging - It should be deleted on Release -/sbin/agetty -l /bin/sh -n --keep-baud 115200,38400,9600 ttyS1 linux & +/sbin/agetty -l /bin/sh -n --keep-baud 115200,38400,9600 console linux & [ -x "${SYSTEM_RECOVERY_GUI}" ] && "${SYSTEM_RECOVERY_GUI}" & [ -x "${SYSTEM_RECOVERY}" ] && "${SYSTEM_RECOVERY}" -- 2.7.4