x11-tools/nvidia-pre-install
Stefan Dirsch d2688a56cd Accepting request 44210 from home:sndirsch:branches:X11:Utilities
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
2010-07-29 20:12:02 +00:00

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