diff options
author | nate <nate@FreeBSD.org> | 1999-03-17 17:39:50 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1999-03-17 17:39:50 +0000 |
commit | f4f0cbc01fcf14dd1bdf154e100d7064037a25bf (patch) | |
tree | 3c3593b91789008d9edd1e7341cd86c35718f3de /etc/rc.pccard | |
parent | f29f19c7578e275f2a6e9880e7a0fa29ad17b8e9 (diff) | |
download | FreeBSD-src-f4f0cbc01fcf14dd1bdf154e100d7064037a25bf.zip FreeBSD-src-f4f0cbc01fcf14dd1bdf154e100d7064037a25bf.tar.gz |
Add a Q&D test before loading the pcic module to make sure there isn't
a compiled in one.
Submitted by: "Sean O'Connell" <sean@stat.Duke.EDU>
Diffstat (limited to 'etc/rc.pccard')
-rw-r--r-- | etc/rc.pccard | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/etc/rc.pccard b/etc/rc.pccard index 7306e7d..1402081 100644 --- a/etc/rc.pccard +++ b/etc/rc.pccard @@ -3,12 +3,17 @@ # PC-card startup script # HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp> # -# $Id: rc.pccard,v 1.6 1998/08/10 19:54:12 brian Exp $ +# $Id: rc.pccard,v 1.7 1999/02/04 10:06:44 markm Exp $ # if [ "X$pccard_enable" = X"YES" ] ; then - if kldload pcic; then - echo "Kernel pcic module loaded." + builtin=`kldstat -v -n 1 | grep pcic | awk '{print $2}'` + if [ $builtin = 'pcic' ] ; then + echo "PCIC module compiled in" + else + if kldload pcic; then + echo "Kernel pcic module loaded." + fi fi if [ "x$pccard_mem" != "xDEFAULT" ] ; then pccardc pccardmem $pccard_mem |