aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-02-18 23:31:50 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-02-18 23:31:50 +0100
commit1ffe1409c796372459a4985f8fe3f10fffe6e816 (patch)
tree165a9c14646dcd05f8dc1fbe7b49a6dff289469f
parentkernel-generic-config: rebased against & and updated for linux-5.11 (diff)
downloadgenkernel-1ffe1409c796372459a4985f8fe3f10fffe6e816.tar.gz
genkernel-1ffe1409c796372459a4985f8fe3f10fffe6e816.tar.bz2
genkernel-1ffe1409c796372459a4985f8fe3f10fffe6e816.zip
gen_moddeps.sh: modules_dep_list(): match module more precise
The current pattern is not precise enough. I.e. when looking for Realtek network driver module (realtek.ko), we also get a match on Realtek HD audio codec module (snd-hda-codec-realtek.ko). This commit will make the pattern more precise. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-xgen_moddeps.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gen_moddeps.sh b/gen_moddeps.sh
index fd7800f..193338d 100755
--- a/gen_moddeps.sh
+++ b/gen_moddeps.sh
@@ -50,7 +50,7 @@ modules_dep_list() {
KEXT=$(modules_kext)
if [ -f "${KERNEL_MODULES_PREFIX%/}/lib/modules/${KV}/modules.dep" ]
then
- cat "${KERNEL_MODULES_PREFIX%/}/lib/modules/${KV}/modules.dep" | grep ${1}${KEXT}\: | cut -d\: -f2
+ grep -F -- "/${1}${KEXT}:" "${KERNEL_MODULES_PREFIX%/}/lib/modules/${KV}/modules.dep" | cut -d\: -f2
fi
}