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