[Lunar-commits] r26642 - moonbase/trunk/x11/fglrx

Zbigniew Luszpinski zbiggy at lunar-linux.org
Tue Nov 6 18:52:20 CET 2007


Author: zbiggy
Date: 2007-11-06 18:52:20 +0100 (Tue, 06 Nov 2007)
New Revision: 26642

Modified:
   moonbase/trunk/x11/fglrx/BUILD
Log:
fglrx: Current binary Radeon driver can not cooperate with kernel later than 2.6.22
This patch protects users against installing fglrx on unsupported kernels.


Modified: moonbase/trunk/x11/fglrx/BUILD
===================================================================
--- moonbase/trunk/x11/fglrx/BUILD	2007-11-06 17:50:58 UTC (rev 26641)
+++ moonbase/trunk/x11/fglrx/BUILD	2007-11-06 17:52:20 UTC (rev 26642)
@@ -1,5 +1,10 @@
 (
 
+if [ `uname -r | cut -d. -f2` -ge 6 ] && [ `uname -r | cut -d. -f3` -ge 23 ]; then
+   message "${PROBLEM_COLOR}Current fglrx driver does not work with kernels greater than ${VERSION_COLOR}2.6.22"
+   message "${MESSAGE_COLOR}Your kernel is at version ${VERSION_COLOR}`uname -r`${DEFAULT_COLOR}"
+   exit 1
+else
         prepare_install &&
         sh $SOURCE --extract fglrx-install &&
         cd fglrx-install &&
@@ -54,5 +59,6 @@
 
         #Update module dependencies
         depmod
+fi
 
 ) > $C_FIFO 2>&1



More information about the Lunar-commits mailing list