mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-23 10:06:25 +01:00
Use ``grep -w'' to prevent catching "pcic_pci"
This commit is contained in:
parent
a6d3121589
commit
ee2071b83d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46390
@ -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