Launch recovery GUI if exists 65/239465/2 accepted/tizen/unified/20200727.075546 submit/tizen/20200727.032939
authorKichan Kwon <k_c.kwon@samsung.com>
Mon, 27 Jul 2020 03:15:26 +0000 (12:15 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Mon, 27 Jul 2020 03:28:26 +0000 (12:28 +0900)
Change-Id: If832e122a1cd5324c60423b35c151eaab9450b6a
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
scripts/recovery-init.in

index 40b80e3..2117221 100644 (file)
@@ -1,6 +1,7 @@
 #!/bin/sh
 
 SYSTEM_RECOVERY="@SYSTEM_RECOVERY_LIBEXEC_DIR@/system-recovery"
+SYSTEM_RECOVERY_GUI="/usr/bin/system-recovery_gui"
 FAKE_ROOT=/system
 
 MOUNT="/usr/bin/mount"
@@ -139,6 +140,7 @@ mount_partitions
 # For debugging - It should be deleted on Release
 /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}"
 
 umount_partitions