From 4a0903848012cbe7c69b1f04e7fee3678e4db0bf Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 1 Nov 2004 20:31:10 +0000 Subject: fix blacklisting to not mismatch on substrings (#137755) --- rc.d/rc.sysinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1