]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/linux.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 11 Oct 2024 15:41:13 +0000 (17:41 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 11 Oct 2024 15:41:13 +0000 (17:41 +0200)
etc/profile.d/linux.sh

index 36e3a082108a8c281e17be76ae2b56604da7f4a8..a0b0efc94629a0ecc257491b30dbe8f1cde849a7 100644 (file)
@@ -3,7 +3,7 @@ case "$OSTYPE" in linux*) [ 1 ] ;; *) return ;; esac
 modprobe_ls() {
        find /lib/modules/$(uname -r) \
                -type f -name '*.ko' \
-               -or \
-               -type f -name '*.ko.xz' \
+               -or -type f -name '*.ko.xz' \
+               -or -type f -name '*.ko.zst' \
                | sed -E -e 's,^.*/([^/]+)\.ko(.xz)?$,\1,' | grep "${1:-^}"
 }