Use ``grep -w'' to prevent catching "pcic_pci"
This commit is contained in:
parent
29d1bb2312
commit
4a9df9b6cb
@ -3,11 +3,11 @@
|
||||
# PC-card startup script
|
||||
# HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp>
|
||||
#
|
||||
# $Id: rc.pccard,v 1.9 1999/03/17 20:57:40 nate Exp $
|
||||
# $Id: rc.pccard,v 1.10 1999/03/17 21:57:00 nate Exp $
|
||||
#
|
||||
|
||||
if [ "X$pccard_enable" = X"YES" ] ; then
|
||||
builtin=`kldstat -v -i 1 | grep pcic | awk '{print $2}'`
|
||||
builtin=`kldstat -v -i 1 | grep -w pcic | awk '{print $2}'`
|
||||
if [ "$builtin" = "pcic" ] ; then
|
||||
echo "PCIC module compiled in"
|
||||
else
|
||||
|
@ -3,11 +3,11 @@
|
||||
# PC-card startup script
|
||||
# HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp>
|
||||
#
|
||||
# $Id: rc.pccard,v 1.9 1999/03/17 20:57:40 nate Exp $
|
||||
# $Id: rc.pccard,v 1.10 1999/03/17 21:57:00 nate Exp $
|
||||
#
|
||||
|
||||
if [ "X$pccard_enable" = X"YES" ] ; then
|
||||
builtin=`kldstat -v -i 1 | grep pcic | awk '{print $2}'`
|
||||
builtin=`kldstat -v -i 1 | grep -w pcic | awk '{print $2}'`
|
||||
if [ "$builtin" = "pcic" ] ; then
|
||||
echo "PCIC module compiled in"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user