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>
This commit is contained in:
parent
ab090e5b4e
commit
6f88981745
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user