Package: afbinit Version: 1.0-1.1 Severity: important Hi,
I have a machine with an Elite3D card. Recently I tried using xorg on it, and found that afbinit init script does not load the microcode on boot. It relies on encountering 'Elite' string in dmesg output as an indication that the microcode must be loaded. Latest kernels do not contain this string, so it exits silently. The simple attached patch works on my box. Ben, I would like to ask for your permission to become a comaintainer of afbinit in Debian. Then I could upload this fix, and sync with Ubuntu. Best regards, -- Jurij Smakov [EMAIL PROTECTED] Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC
diff -aur a/debian/afbinit.init b/debian/afbinit.init --- a/debian/afbinit.init 2007-02-18 13:15:46.000000000 -0800 +++ b/debian/afbinit.init 2007-02-18 13:14:59.000000000 -0800 @@ -11,13 +11,11 @@ exit fi -# Need a better way to test this -[ `dmesg | grep -c "Elite 3D"` -ne 0 ] || exit - case "$1" in start) # Make FB device list. - afb_devs=`/bin/dmesg | /bin/egrep -i "Elite 3D" | /bin/sed 's/\:.*//'` + afb_devs=$(awk '/Elite/ {printf "fb%d\n",$1}' /proc/fb) + [ -n "${afb_devs}" ] || exit 0 # Load microcode onto each card. for AFB in ${afb_devs}; do diff -aur a/debian/control b/debian/control --- a/debian/control 2007-02-18 13:15:46.000000000 -0800 +++ b/debian/control 2007-02-18 13:25:25.000000000 -0800 @@ -7,7 +7,7 @@ Package: afbinit Architecture: sparc -Depends: ${shlibs:Depends} +Depends: ${shlibs:Depends}, mawk | awk Description: Elite 3D Framebuffer firmware initializer The package provides a program that can initialize the microcode firmware on an Elite 3D framebuffer card found on many UltraSPARC systems. This is