From owner-cvs-all Wed May 5 23:51:21 1999 Delivered-To: cvs-all@freebsd.org Received: from ipt2.iptelecom.net.ua (ipt2.iptelecom.net.ua [212.42.68.2]) by hub.freebsd.org (Postfix) with ESMTP id 9C03A14F37; Wed, 5 May 1999 23:51:11 -0700 (PDT) (envelope-from sobomax@altavista.net) Received: from vega. (dialup3-51.iptelecom.net.ua [212.42.69.242]) by ipt2.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id JAA23236; Thu, 6 May 1999 09:51:45 +0300 (EEST) Received: from altavista.net (big_brother [192.168.1.1]) by vega. (8.9.2/8.9.2) with ESMTP id JAA23447; Thu, 6 May 1999 09:51:01 +0300 (EEST) (envelope-from sobomax@altavista.net) Message-ID: <37313BD4.5269A68E@altavista.net> Date: Thu, 06 May 1999 09:51:00 +0300 From: Maxim Sobolev Reply-To: sobomax@altavista.net Organization: Vega International Capital X-Mailer: Mozilla 4.51 [en] (WinNT; I) X-Accept-Language: ru,en MIME-Version: 1.0 To: obrien@FreeBSD.ORG Cc: Dima Ruban , Bill Paul , Nate Williams , committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/pccard pccard.c References: <19990505053731.C46F215822@hub.freebsd.org> <199905050652.XAA40357@burka.rdy.com> <19990505091025.A31000@dragon.nuxi.com> Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 8bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk David O'Brien wrote: > > > code has been compiled into the kernel by doing a kldstat and looking > > > for the string 'pcic' in the output. Newsflash people: that doesn't work. > > > Things directly compiled into the kernel don't show up in kldstat: all > > > you'll see is the name of the kernel image. > > Actually the logic in /etc/rc.pccard is way very fragile.  It runs > >    builtin=`kldstat -v -i 1 | grep pcic | awk '{print $2}'` > > which on my Vaio 505tx gives: > >     pcic_pci pcic > > And the result if the `kldstat' is tested as: > >     if [ "$builtin" = "pcic" ]; then >         echo "PCIC module compiled in" >     else >         kldload .... > > which of course bombs for me.  Diking /kld/pcic.ko does the job of > course. Upgrade to the new rc.pccard - this misbehaviour corrected there. Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message