2022-02-05 14:23:32 +00:00
|
|
|
#!/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
|
2023-02-27 11:55:06 +00:00
|
|
|
if [ -e "${ARGS_FILE}" ] ; then
|
2022-02-05 14:23:32 +00:00
|
|
|
break
|
|
|
|
fi
|
|
|
|
usleep 250000
|
|
|
|
done
|
|
|
|
|
2023-02-27 11:55:06 +00:00
|
|
|
if [ -e "${ARGS_FILE}" ] ; then
|
2022-02-05 14:23:32 +00:00
|
|
|
. /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
|