diff options
author | Ferris McCormick <fmccor@gentoo.org> | 2007-10-31 16:52:30 +0000 |
---|---|---|
committer | Ferris McCormick <fmccor@gentoo.org> | 2007-10-31 16:52:30 +0000 |
commit | 041c0a039a9ba86c1eb8d7e5f5b825d2bee83f14 (patch) | |
tree | a01ac1863e31bb19dac39b3c0834cf88ed5f4c0e /x11-misc/afbinit/files | |
parent | Stable for HPPA (bug #197313). (diff) | |
download | historical-041c0a039a9ba86c1eb8d7e5f5b825d2bee83f14.tar.gz historical-041c0a039a9ba86c1eb8d7e5f5b825d2bee83f14.tar.bz2 historical-041c0a039a9ba86c1eb8d7e5f5b825d2bee83f14.zip |
Version bump for change in dmesg format to report FFB devices.
Package-Manager: portage-2.1.3.16
Diffstat (limited to 'x11-misc/afbinit/files')
-rw-r--r-- | x11-misc/afbinit/files/digest-afbinit-1.0.1-r6 | 3 | ||||
-rw-r--r-- | x11-misc/afbinit/files/rc.afb-1.0.1-r6.patch | 60 |
2 files changed, 63 insertions, 0 deletions
diff --git a/x11-misc/afbinit/files/digest-afbinit-1.0.1-r6 b/x11-misc/afbinit/files/digest-afbinit-1.0.1-r6 new file mode 100644 index 000000000000..2463ee5c7015 --- /dev/null +++ b/x11-misc/afbinit/files/digest-afbinit-1.0.1-r6 @@ -0,0 +1,3 @@ +MD5 e8fe8ac0fc16d942ff3b1508e8324e6a afbinit-1.0.1.tar.bz2 3288 +RMD160 3b401ce48ad3f135c2548b293df906dc7ddd6068 afbinit-1.0.1.tar.bz2 3288 +SHA256 3a9b246b34f9b518f2e9a143e5c9faacd0197baa4e5dd13f82ce3c336a3c285c afbinit-1.0.1.tar.bz2 3288 diff --git a/x11-misc/afbinit/files/rc.afb-1.0.1-r6.patch b/x11-misc/afbinit/files/rc.afb-1.0.1-r6.patch new file mode 100644 index 000000000000..d02a0732cea4 --- /dev/null +++ b/x11-misc/afbinit/files/rc.afb-1.0.1-r6.patch @@ -0,0 +1,60 @@ +--- rc.afb- 2004-05-27 17:59:23.549406000 +0000 ++++ rc.afb 2004-05-27 18:32:34.709406000 +0000 +@@ -10,25 +10,44 @@ + exit 0 + fi + +-if [ `/bin/dmesg | /bin/grep -c "Elite 3D"` -eq 0 ] ++# The microcode loader binary and the microcode ++# itself must exist. ++if [ ! -x /usr/sbin/afbinit -o ! -f /usr/lib/afb.ucode ] + then + exit 0 + fi + +-# The microcode loader binary and the microcode +-# itself must exist. +-if [ ! -x /usr/sbin/afbinit -o ! -f /usr/lib/afb.ucode ] ++# Make FB device list, depending on which kind of kernel we have. ++# First, try kernel 2.4.x ++ ++if [ `/bin/dmesg | /bin/grep -c "Elite 3D"` -gt 0 ] + then ++ ++ afb_devs=`/bin/dmesg | /bin/egrep -i "Elite 3D" | /bin/sed 's/\:.*//'` ++ ++ # Load microcode onto each card. ++ for AFB in ${afb_devs} ++ do ++ echo -n "${AFB}: Loading Elite3D microcode... " ++ /usr/sbin/afbinit /dev/${AFB} /usr/lib/afb.ucode ++ echo "done." ++ done + exit 0 + fi ++## ++# OK, we're not kernel 2.4.x ++# try kernel 2.6.x + +-# Make FB device list. +-afb_devs=`/bin/dmesg | /bin/egrep -i "Elite 3D" | /bin/sed 's/\:.*//'` ++if [ `/bin/dmesg | /bin/grep -c "AFB"` -gt 0 ] ++then + +-# Load microcode onto each card. +-for AFB in ${afb_devs} +-do +- echo -n "${AFB}: Loading Elite3D microcode... " +- /usr/sbin/afbinit /dev/${AFB} /usr/lib/afb.ucode +- echo "done." +-done ++ afb_devs=`/bin/more -s /proc/fb | /bin/egrep -i "Elite 3D" | /bin/sed 's/\ .*//'` ++ # Load microcode onto each card. ++ for AFB in ${afb_devs} ++ do ++ echo -n "/dev/fb${AFB}: Loading Elite3D microcode... " ++ /usr/sbin/afbinit /dev/fb${AFB} /usr/lib/afb.ucode ++ echo "done." ++ done ++ exit 0 ++fi |