Use ``grep -w'' to prevent catching "pcic_pci"

This commit is contained in:
dima 1999-05-04 08:34:55 +00:00
parent 29d1bb2312
commit 4a9df9b6cb
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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