0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-01-07 12:38:21 +00:00
2018-07-18 22:37:47 +02:00

28 lines
614 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
# wait for xorg-configure@.service
# max 10 seconds
ARGS_FILE="/run/libreelec/xorg-settings.conf"
for i in $(seq 1 40) ; do
if [ -e "$ARGS_FILE" ] ; then
break
fi
usleep 250000
done
if [ -e "$ARGS_FILE" ] ; then
. /run/libreelec/xorg-settings.conf
exec xorg-launch-helper $@ $XORG_ARGS
else
echo "" > /dev/tty1
echo "failed to start xorg." > /dev/tty1
echo "is your GPU supported?" > /dev/tty1
echo "" > /dev/tty1
lspci -nn > /dev/tty1
echo "" > /dev/tty1
sleep 30
fi