- move xorg related functions from /etc/sysconfig to /etc/conf.d/xorg
- cleanup /etc/conf.d/xorg
- remove the default xorg cursor with -nocursor
This commit is contained in:
Stephan Raue 2009-12-09 14:03:17 +01:00
parent b3d392214c
commit 2c7f8dd991
2 changed files with 32 additions and 34 deletions

View File

@ -17,34 +17,6 @@
fi
}
start_xorg() {
args="-s 0 -br -noreset -allowMouseOpenFail "
if lspci -n | grep 0300 | grep -q 10de; then
progress "Found nVidia card, enabling binary driver as requested"
mkdir -p /var/lib
ln -sf /usr/lib/libGL_nvidia.so.1 /var/lib/libGL.so
ln -sf /usr/lib/xorg/modules/extensions/libglx_nvidia.so /var/lib/libglx.so
else
progress "Not found nVidia card, enabling OSS driver as requested"
mkdir -p /var/lib
ln -sf /usr/lib/libGL_mesa.so.1 /var/lib/libGL.so
ln -sf /usr/lib/xorg/modules/extensions/libglx_mesa.so /var/lib/libglx.so
fi
mkdir -p /var/run
acpid 2>&1 > /dev/null
mkdir -p /var/cache/xkb
exec /usr/bin/Xorg :0.0 vt01 ${args} > /dev/null 2>&1 &
}
wait_for_xorg () {
while [ ! -f /tmp/.X0-lock ]; do
true
done
}
wait_for_network () {
while [ ! -f /var/run/connman/udhcpc.*.pid ]; do
true

View File

@ -9,11 +9,37 @@
# X environment variables.
#-------------------------------------------------------------------------------
DISPLAY=':0.0'
TTY=1
XINITRC='/usr/lib/X11/xinit/xinitrc'
XSERVERRC='/usr/lib/X11/xinit/xserverrc'
XORG_ARGS="-s 0 -br -noreset -allowMouseOpenFail -nocursor"
export DISPLAY
export XINITRC
export XSERVERRC
export TTY
#-------------------------------------------------------------------------------
# do not change anything below
#-------------------------------------------------------------------------------
start_xorg() {
if lspci -n | grep 0300 | grep -q 10de; then
progress "Found nVidia card, enabling binary driver as requested"
mkdir -p /var/lib
ln -sf /usr/lib/libGL_nvidia.so.1 /var/lib/libGL.so
ln -sf /usr/lib/xorg/modules/extensions/libglx_nvidia.so /var/lib/libglx.so
else
progress "Not found nVidia card, enabling OSS driver as requested"
mkdir -p /var/lib
ln -sf /usr/lib/libGL_mesa.so.1 /var/lib/libGL.so
ln -sf /usr/lib/xorg/modules/extensions/libglx_mesa.so /var/lib/libglx.so
fi
mkdir -p /var/run
acpid 2>&1 > /dev/null
mkdir -p /var/cache/xkb
exec /usr/bin/Xorg $DISPLAY vt01 $XORG_ARGS > /dev/null 2>&1 &
}
wait_for_xorg () {
while [ ! -f /tmp/.X0-lock ]; do
true
done
}