Author: leigh123linux
Update of /cvs/nonfree/rpms/xorg-x11-drv-nvidia-173xx/F-16
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv15147
Modified Files:
xorg-x11-drv-nvidia-173xx.spec
Log Message:
* Sat May 19 2012 leigh scott <leigh123linux(a)googlemail.com> - 173.14.34-2
- add changes for grub2
Index: xorg-x11-drv-nvidia-173xx.spec
===================================================================
RCS file:
/cvs/nonfree/rpms/xorg-x11-drv-nvidia-173xx/F-16/xorg-x11-drv-nvidia-173xx.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- xorg-x11-drv-nvidia-173xx.spec 19 May 2012 17:54:23 -0000 1.22
+++ xorg-x11-drv-nvidia-173xx.spec 19 May 2012 18:12:04 -0000 1.23
@@ -5,7 +5,7 @@
Name: xorg-x11-drv-nvidia-173xx
Version: 173.14.34
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: NVIDIA's 173xx serie proprietary display driver for NVIDIA graphic
cards
Group: User Interface/X Hardware Support
@@ -243,16 +243,18 @@
%post
if [ "$1" -eq "1" ]; then
- # Enable nvidia driver when installing
- #%{_sbindir}/nvidia-173xx-config-display enable &>/dev/null ||:
- # Add init script and start it
- #/sbin/chkconfig --add nvidia-173xx ||:
- #/etc/init.d/nvidia-173xx start &>/dev/null ||:
+ ISGRUB1=""
+ if [[ -f /boot/grub/grub.conf && ! -f /boot/grub2/grub2.cfg ]] ; then
+ ISGRUB1="--grub"
+ fi
if [ -x /sbin/grubby ] ; then
GRUBBYLASTKERNEL=`/sbin/grubby --default-kernel`
- /sbin/grubby --update-kernel=${GRUBBYLASTKERNEL} --args='nouveau.modeset=0
rdblacklist=nouveau' &>/dev/null
+ /sbin/grubby $ISGRUB1 \
+ --update-kernel=${GRUBBYLASTKERNEL} \
+ --args='nouveau.modeset=0 rd.driver.blacklist=nouveau' \
+ &>/dev/null
fi
-fi ||:
+fi || :
%post libs -p /sbin/ldconfig
@@ -262,18 +264,18 @@
%preun
if [ "$1" -eq "0" ]; then
- # Disable driver on final removal
- test -f %{_sbindir}/nvidia-173xx-config-display &&
%{_sbindir}/nvidia-173xx-config-display disable &>/dev/null ||:
- #%_initrddir}/nvidia-173xx stop &> /dev/null ||:
- #/sbin/chkconfig --del nvidia-173xx ||:
- #Clear grub option to disable nouveau for all kernels
- if [ -x /sbin/grubby ] ; then
- KERNELS=`ls /boot/vmlinuz-*%{?dist}.$(uname -m)*`
- for kernel in ${KERNELS} ; do
- /sbin/grubby --update-kernel=${kernel} \
- --remove-args='nouveau.modeset=0 rdblacklist=nouveau nomodeset'
&>/dev/null
- done
- fi
+ ISGRUB1=""
+ if [[ -f /boot/grub/grub.conf && ! -f /boot/grub2/grub2.cfg ]] ; then
+ ISGRUB1="--grub"
+ fi
+ if [ -x /sbin/grubby ] ; then
+ KERNELS=`ls /boot/vmlinuz-*%{?dist}.$(uname -m)*`
+ for kernel in ${KERNELS} ; do
+ /sbin/grubby $ISGRUB1 \
+ --update-kernel=${kernel} \
+ --remove-args='nouveau.modeset=0 rdblacklist=nouveau
rd.driver.blacklist=nouveau nomodeset' &>/dev/null
+ done
+ fi
#Backup and disable previously used xorg.conf
[ -f %{_sysconfdir}/X11/xorg.conf ] && \
mv %{_sysconfdir}/X11/xorg.conf %{_sysconfdir}/X11/xorg.conf.%{name}_uninstalled
&>/dev/null
@@ -322,6 +324,9 @@
%changelog
+* Sat May 19 2012 leigh scott <leigh123linux(a)googlemail.com> - 173.14.34-2
+- add changes for grub2
+
* Sat May 19 2012 leigh scott <leigh123linux(a)googlemail.com> - 173.14.34-1
- Update to 173.14.34