LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File nvidia-pre-install of Package x11-tools (Project X11:Utilities)

#!/bin/sh

echo "blacklist nouveau" > /etc/modprobe.d/nvidia.conf

# recreate initrd without KMS, if the use of KMS is enabled in initrd
if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
  sed -i 's/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="yes"/g' /etc/sysconfig/kernel
  mkinitrd
fi