11 lines
294 B
Plaintext
11 lines
294 B
Plaintext
|
#!/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
|
||
|
|