From db05edbb82071c3b9b1f721e02ef7e38bc5cfa1e Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 16 May 2019 01:04:58 +0100 Subject: [PATCH] etc/profile.d/linux.sh --- etc/profile.d/linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/profile.d/linux.sh b/etc/profile.d/linux.sh index c2710525..afb4f90a 100644 --- a/etc/profile.d/linux.sh +++ b/etc/profile.d/linux.sh @@ -1,5 +1,5 @@ case "$OSTYPE" in linux*) [ 1 ] ;; *) return ;; esac modprobe_ls() { - find /lib/modules/$(uname -r) -type f -name '*.ko' | sed -E -e 's,^.*/([^/]+)\.ko$,\1,' + find /lib/modules/$(uname -r) -type f -name '*.ko' | sed -E -e 's,^.*/([^/]+)\.ko$,\1,' | grep "${1:-^}" } -- 2.47.3