aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-11-01 20:31:10 +0000
committerBill Nottingham <notting@redhat.com>2004-11-01 20:31:10 +0000
commit4a0903848012cbe7c69b1f04e7fee3678e4db0bf (patch)
tree0f4431db41cdac8fb7d91a8333ec7516aaa8e5b9
parent5fa37e7da23da05de87c39acec335f849cf56bb6 (diff)
downloadinitscripts-4a0903848012cbe7c69b1f04e7fee3678e4db0bf.tar
initscripts-4a0903848012cbe7c69b1f04e7fee3678e4db0bf.tar.gz
initscripts-4a0903848012cbe7c69b1f04e7fee3678e4db0bf.tar.bz2
initscripts-4a0903848012cbe7c69b1f04e7fee3678e4db0bf.tar.xz
initscripts-4a0903848012cbe7c69b1f04e7fee3678e4db0bf.zip
fix blacklisting to not mismatch on substrings (#137755)
-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