Stefan Dirsch
d2688a56cd
Copy from home:sndirsch:branches:X11:Utilities/x11-tools via accept of submit request 44210 revision 2. Request was accepted with message: accepted OBS-URL: https://build.opensuse.org/request/show/44210 OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/x11-tools?expand=0&rev=6
11 lines
294 B
Bash
11 lines
294 B
Bash
#!/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
|
|
|