xorg-server:

- add init script to preparing start of xorg
- remove xorg init script
- move loading of nvidia driver to init script for preparing xorg start
This commit is contained in:
Stephan Raue 2010-03-14 01:54:28 +01:00
parent 8b53890f33
commit bbfa9f24f6
3 changed files with 27 additions and 6 deletions

View File

@ -46,12 +46,6 @@
cp -PR /usr/config/$i $HOME/.config
done
# loading NVidia driver
if lspci -n | grep 0300 | grep -q 10de; then
progress "loading NVidia driver"
$IONICE modprobe nvidia
fi
# caching xbmc
[ "$XBMC_CACHING" = "yes" ] && cache_xbmc

View File

@ -0,0 +1,27 @@
# configure X.Org video settings
#
# runlevels: openelec, text, debug
if lspci -n | grep 0300 | grep -q 10de; then
progress "Found nVidia card, loading NVidia driver"
$IONICE modprobe nvidia &
progress "Found nVidia card, enabling NVIDIA GLX as requested"
$IONICE mkdir -p /var/lib
$IONICE ln -sf /usr/lib/libGL_nvidia.so.1 /var/lib/libGL.so
$IONICE ln -sf /usr/lib/xorg/modules/extensions/libglx_nvidia.so /var/lib/libglx.so
else
progress "Not found nVidia card, enabling Mesa GLX as requested"
$IONICE mkdir -p /var/lib
$IONICE ln -sf /usr/lib/libGL_mesa.so.1 /var/lib/libGL.so
$IONICE ln -sf /usr/lib/xorg/modules/extensions/libglx_mesa.so /var/lib/libglx.so
fi
# Make some needed directorys
$IONICE mkdir -p /var/cache/xkb
$IONICE mkdir -m 1777 -p /tmp/.ICE-unix
$IONICE chown root:root /tmp/.ICE-unix