1996-03-12 15:39:26 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
|
|
|
# PC-card startup script
|
|
|
|
# HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp>
|
|
|
|
#
|
1999-03-17 21:57:00 +00:00
|
|
|
# $Id: rc.pccard,v 1.9 1999/03/17 20:57:40 nate Exp $
|
1998-08-10 19:54:12 +00:00
|
|
|
#
|
1996-03-12 15:39:26 +00:00
|
|
|
|
1997-04-27 03:59:19 +00:00
|
|
|
if [ "X$pccard_enable" = X"YES" ] ; then
|
1999-03-17 21:57:00 +00:00
|
|
|
builtin=`kldstat -v -i 1 | grep pcic | awk '{print $2}'`
|
1999-03-17 20:57:40 +00:00
|
|
|
if [ "$builtin" = "pcic" ] ; then
|
1999-03-17 17:39:50 +00:00
|
|
|
echo "PCIC module compiled in"
|
|
|
|
else
|
|
|
|
if kldload pcic; then
|
|
|
|
echo "Kernel pcic module loaded."
|
|
|
|
fi
|
1999-02-04 10:06:44 +00:00
|
|
|
fi
|
1996-03-14 18:24:07 +00:00
|
|
|
if [ "x$pccard_mem" != "xDEFAULT" ] ; then
|
1997-04-27 03:59:19 +00:00
|
|
|
pccardc pccardmem $pccard_mem
|
1996-03-12 15:39:26 +00:00
|
|
|
else
|
1997-04-27 03:59:19 +00:00
|
|
|
pccardc pccardmem 0xd0000
|
1996-03-12 15:39:26 +00:00
|
|
|
fi
|
1997-05-03 11:22:17 +00:00
|
|
|
echo -n "Enable PC-card."
|
|
|
|
pccardd 2>&1 > /var/log/pccardd.debug &
|
1996-03-12 15:39:26 +00:00
|
|
|
fi
|