From: Kichan Kwon Date: Mon, 27 Jul 2020 03:15:26 +0000 (+0900) Subject: Launch recovery GUI if exists X-Git-Tag: accepted/tizen/unified/20200727.075546^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4489f30883e30ae332b59ce9c28479caf72c207c;p=platform%2Fcore%2Fsystem%2Fsystem-recovery.git Launch recovery GUI if exists Change-Id: If832e122a1cd5324c60423b35c151eaab9450b6a Signed-off-by: Kichan Kwon --- diff --git a/scripts/recovery-init.in b/scripts/recovery-init.in index 40b80e3..2117221 100644 --- a/scripts/recovery-init.in +++ b/scripts/recovery-init.in @@ -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