From 1dc4d3e4d7c81a95a6ec38b55fd8746259514e75 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 1 Nov 2004 20:31:01 +0000 Subject: fix blacklisting to not mismatch on substrings (#137755) --- rc.d/rc.sysinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 86e1c99e..e022f862 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 -- cgit v1.2.1