From 39941060c1c3886af3e0b5b236e3c050db0634b6 Mon Sep 17 00:00:00 2001 From: Kyle McMartin Date: Tue, 17 Sep 2013 12:40:46 -0400 Subject: [PATCH] fix thinko --- kernel.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel.spec b/kernel.spec index da22ff09a..125e6ef6b 100644 --- a/kernel.spec +++ b/kernel.spec @@ -1771,7 +1771,7 @@ BuildKernel() { sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef | LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1 if [ ! -z "$3" ]; then - grep -v "$3" $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1 + sed -r -e "/^($3)\$/d" -i $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1 fi }