| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/nvidia-driver.eclass,v 1.5 2007/07/16 15:06:06 cardoe Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/nvidia-driver.eclass,v 1.6 2007/07/16 15:12:43 cardoe Exp $ |
| 4 | |
4 | |
| 5 | # |
5 | # |
| 6 | # Original Author: Doug Goldstein <cardoe@gentoo.org> |
6 | # Original Author: Doug Goldstein <cardoe@gentoo.org> |
| 7 | # Purpose: Provide useful messages for nvidia-drivers based on currently |
7 | # Purpose: Provide useful messages for nvidia-drivers based on currently |
| 8 | # installed Nvidia card |
8 | # installed Nvidia card |
| … | |
… | |
| 66 | local NVIDIA_MASK="$(nvidia-driver-get-mask)" |
66 | local NVIDIA_MASK="$(nvidia-driver-get-mask)" |
| 67 | if [ -n "$NVIDIA_MASK" ]; then |
67 | if [ -n "$NVIDIA_MASK" ]; then |
| 68 | version_compare "${NVIDIA_MASK##-*}" "${PV}" |
68 | version_compare "${NVIDIA_MASK##-*}" "${PV}" |
| 69 | r=$? |
69 | r=$? |
| 70 | |
70 | |
| 71 | if [ "x$r" = "x1" ]; then |
71 | if [ "x$r" = "x3" ]; then |
| 72 | ewarn "***** WARNING *****" |
72 | ewarn "***** WARNING *****" |
| 73 | ewarn |
73 | ewarn |
| 74 | ewarn "You are currently installing a version of nvidia-drivers that is" |
74 | ewarn "You are currently installing a version of nvidia-drivers that is" |
| 75 | ewarn "known not to work with a video card you have installed on your" |
75 | ewarn "known not to work with a video card you have installed on your" |
| 76 | ewarn "system. If this is intentional, please ignore this. If it is not" |
76 | ewarn "system. If this is intentional, please ignore this. If it is not" |