aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-11-01 20:30:26 +0000
committerBill Nottingham <notting@redhat.com>2004-11-01 20:30:26 +0000
commit14749d001aead74d2a21263048c2bff8f53ad1bd (patch)
treef326cb41924f073d5b5ea07ffdfd1c20ba70d94c /rc.d/rc.sysinit
parent705b576449428955bbb2d319d58091d037bc818d (diff)
downloadinitscripts-14749d001aead74d2a21263048c2bff8f53ad1bd.tar
initscripts-14749d001aead74d2a21263048c2bff8f53ad1bd.tar.gz
initscripts-14749d001aead74d2a21263048c2bff8f53ad1bd.tar.bz2
initscripts-14749d001aead74d2a21263048c2bff8f53ad1bd.tar.xz
initscripts-14749d001aead74d2a21263048c2bff8f53ad1bd.zip
fix blacklisting to not mismatch on substrings (#137755)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 9871917d..fe72fd27 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -165,7 +165,7 @@ eval `kmodule | while read devtype mod ; do
done`
load_module () {
- LC_ALL=C fgrep -q "$1" /etc/hotplug/blacklist 2>/dev/null || modprobe $1 >/dev/null 2>&1
+ LC_ALL=C fgrep -xq "$1" /etc/hotplug/blacklist 2>/dev/null || modprobe $1 >/dev/null 2>&1
}
# IDE