Skip to content

Commit

Permalink
[script] Startup delay in x11 to prevent from to early start openauto
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeyexp committed Jul 13, 2018
1 parent 5910f3f commit d6fdba9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit d6fdba9

Please sign in to comment.