From d6fdba9ae2165d771612f23f5f9fa6674efc1bd3 Mon Sep 17 00:00:00 2001 From: Marc Hillesheim Date: Fri, 13 Jul 2018 18:52:31 +0200 Subject: [PATCH] [script] Startup delay in x11 to prevent from to early start openauto --- .../03-crankshaft-base/files/opt/crankshaft/service_openauto.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stage2/03-crankshaft-base/files/opt/crankshaft/service_openauto.sh b/stage2/03-crankshaft-base/files/opt/crankshaft/service_openauto.sh index e4a21aa1..23e17931 100755 --- a/stage2/03-crankshaft-base/files/opt/crankshaft/service_openauto.sh +++ b/stage2/03-crankshaft-base/files/opt/crankshaft/service_openauto.sh @@ -30,6 +30,8 @@ if [ -f /tmp/start_openauto ]; then echo "[${CYAN}${BOLD} INFO ${RESET}] *******************************************************" >/dev/tty3 echo "[${CYAN}${BOLD} INFO ${RESET}] Starting OpenAuto in X11 Mode" >/dev/tty3 echo "[${CYAN}${BOLD} INFO ${RESET}] *******************************************************" >/dev/tty3 + # short delay to be sure system is ready + sleep 2 sed -i "s/^OMXLayerIndex=.*$/OMXLayerIndex=0/" /tmp/openauto.ini # Starts the Autoapp (OpenAuto) main program via x-server sudo runuser -l pi -c 'xinit'