mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
xinit:
- replace xinit app to an script that start Xorg faster
This commit is contained in:
parent
7ef988b19d
commit
dfb2ab2e88
@ -1,17 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/build toolchain
|
||||
|
||||
cd $PKG_BUILD
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
|
||||
make
|
||||
|
||||
$STRIP $1
|
@ -5,8 +5,4 @@
|
||||
PKG_DIR=`find $PACKAGES -type d -name $1`
|
||||
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp -PR $PKG_BUILD/$1 $INSTALL/usr/bin
|
||||
|
||||
mkdir -p $INSTALL/usr/lib/X11/xinit/
|
||||
cp -PR $PKG_DIR/scripts/xinitrc $INSTALL/usr/lib/X11/xinit/
|
||||
cp -PR $PKG_DIR/scripts/xserverrc $INSTALL/usr/lib/X11/xinit/
|
||||
cp -PR $PKG_DIR/scripts/$1 $INSTALL/usr/bin
|
||||
|
28
packages/x11/app/xinit/scripts/xinit
Normal file
28
packages/x11/app/xinit/scripts/xinit
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/sysconfig
|
||||
|
||||
# 'vt02' starts X on virtual terminal 2.
|
||||
# '-logverbose 6' enables useful troubleshooting output in /var/log/Xorg.0.0.log.
|
||||
|
||||
args="-s 0 -br -allowMouseOpenFail "
|
||||
|
||||
if /usr/bin/test "${MOOVIDA_DEBUG}" = "yes" ; then
|
||||
args="${args} -logverbose 6 -verbose 0"
|
||||
fi
|
||||
|
||||
mkdir -p /var/cache/xkb
|
||||
|
||||
exec /usr/bin/X :0.0 vt$TTY ${args} > /dev/null 2>&1 &
|
||||
|
||||
while true; do
|
||||
if [ -f /tmp/.X0-lock ]; then
|
||||
for file in /usr/etc/xinitrc.d/* ; do
|
||||
. ${file}
|
||||
done
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
http://xorg.freedesktop.org/releases/individual/app/xinit-1.1.1.tar.bz2
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
################################################################################
|
||||
# windowmanager
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user