mirror of
https://github.com/TommyTran732/Kernel-Module-Blacklist.git
synced 2025-08-24 07:16:27 +02:00
@@ -16,7 +16,7 @@
|
||||
|
||||
# List available modules
|
||||
# shellcheck disable=SC2010
|
||||
ls -R /lib/modules/"$(uname -r)"/kernel/{drivers,fs,net,sound} | grep "\.ko" | sed 's/.ko.xz//g' > blacklist.txt
|
||||
ls -R /lib/modules/"$(uname -r)"/kernel/{drivers,fs,net,sound} | grep "\.ko" | sed 's/.ko.xz//g' | sed 's/.ko.zst//g' > blacklist.txt
|
||||
|
||||
# List actively used modules
|
||||
lsmod | awk '{ print $1 }' > necessary.txt
|
||||
|
Reference in New Issue
Block a user