From: Nicolas Boisselier Date: Fri, 11 Oct 2024 15:41:13 +0000 (+0200) Subject: etc/profile.d/linux.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=841b7652e356b8138d0aff9f8111494759a5787f;p=nb.git etc/profile.d/linux.sh --- diff --git a/etc/profile.d/linux.sh b/etc/profile.d/linux.sh index 36e3a082..a0b0efc9 100644 --- a/etc/profile.d/linux.sh +++ b/etc/profile.d/linux.sh @@ -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:-^}" }