summaryrefslogtreecommitdiffstats
path: root/os-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'os-plugins')
-rw-r--r--os-plugins/plugins/xserver/XX_xserver.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/os-plugins/plugins/xserver/XX_xserver.sh b/os-plugins/plugins/xserver/XX_xserver.sh
index 4c9b8c5b..d26693ef 100644
--- a/os-plugins/plugins/xserver/XX_xserver.sh
+++ b/os-plugins/plugins/xserver/XX_xserver.sh
@@ -85,10 +85,16 @@ ${PLUGIN_ROOTFS}/usr/X11R6/lib/modules/\,"
xmodule="nvidia"
PLUGIN_PATH="/mnt${PLUGIN_ROOTFS}"
- # sometimes the kernel module needs agpgart
- modprobe agpgart
- # insert kernel driver
- chroot /mnt /sbin/insmod ${PLUGIN_ROOTFS}/modules/nvidia.ko
+ # if we can't find the nongpl kernel module, use gpl xorg
+ # nvidia driver
+ if [ -e ${PLUGIN_ROOTFS}/modules/nvidia.ko ]; then
+ # sometimes the kernel module needs agpgart
+ modprobe agpgart
+ # insert kernel driver
+ chroot /mnt /sbin/insmod ${PLUGIN_ROOTFS}/modules/nvidia.ko
+ else
+ xmodule="nv"
+ fi
fi