* Jurij Smakov <[EMAIL PROTECTED]>, [2007-02-18 13:50 -0800]: > 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
Your patch works correctly here. I would also suggest to redirect the output of afbinit to /dev/null in order to have a cleaner boot message. As it is now, afbinit.init prints the firmware revision number every time: fb0: Loading Elite3D microcode... Revision-1.3.10 done. ciao, ema -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]