freebsd-skq/etc/rc.pccard
Nate Williams 6f88981745 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>
1999-03-17 17:39:50 +00:00

26 lines
574 B
Bash

#!/bin/sh -
#
# PC-card startup script
# HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp>
#
# $Id: rc.pccard,v 1.7 1999/02/04 10:06:44 markm Exp $
#
if [ "X$pccard_enable" = X"YES" ] ; then
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
else
pccardc pccardmem 0xd0000
fi
echo -n "Enable PC-card."
pccardd 2>&1 > /var/log/pccardd.debug &
fi