Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 May 1999 09:51:00 +0300
From:      Maxim Sobolev <sobomax@altavista.net>
To:        obrien@FreeBSD.ORG
Cc:        Dima Ruban <dima@best.net>, Bill Paul <wpaul@FreeBSD.ORG>, Nate Williams <nate@mt.sri.com>, committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/pccard pccard.c
Message-ID:  <37313BD4.5269A68E@altavista.net>
References:  <19990505053731.C46F215822@hub.freebsd.org> <199905050652.XAA40357@burka.rdy.com> <19990505091025.A31000@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37313BD4.5269A68E>