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

This commit is contained in:
Dima Ruban 1999-05-04 08:34:55 +00:00
parent a6d3121589
commit ee2071b83d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46390
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