diff options
author | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-02-22 21:09:05 +0200 |
---|---|---|
committer | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-02-22 21:09:05 +0200 |
commit | ef59a3799c6ba8f494c50111356834fa1ad23a44 (patch) | |
tree | b5f139c5e44c8394def0db3a43d57ecb17021dea /generatemodlist.sh | |
download | linux_kernel_scripts-ef59a3799c6ba8f494c50111356834fa1ad23a44.tar.gz linux_kernel_scripts-ef59a3799c6ba8f494c50111356834fa1ad23a44.tar.zst |
First commit
Diffstat (limited to 'generatemodlist.sh')
-rwxr-xr-x | generatemodlist.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generatemodlist.sh b/generatemodlist.sh new file mode 100755 index 0000000..33ed690 --- /dev/null +++ b/generatemodlist.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +find /usr/lib/modules/$1/ -type f | grep -i '\.ko\.zst' | xargs basename -a | tr '\n' ' ' | sed 's/\.ko\.zst//g' > mod_list.txt |