forked from pfsense/FreeBSD-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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" <[email protected]>
- Loading branch information
Showing
2 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,17 @@ | |
# PC-card startup script | ||
# HOSOKAWA, Tatsumi <[email protected]> | ||
# | ||
# $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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,17 @@ | |
# PC-card startup script | ||
# HOSOKAWA, Tatsumi <[email protected]> | ||
# | ||
# $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 | ||
|