mirror of
https://github.com/TommyTran732/Kernel-Module-Blacklist.git
synced 2025-02-23 21:11:15 +01:00
Filter out .zst as well
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
8cbc12fdd4
commit
9cc1f925d6
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
# List available modules
|
# List available modules
|
||||||
# shellcheck disable=SC2010
|
# 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
|
# List actively used modules
|
||||||
lsmod | awk '{ print $1 }' > necessary.txt
|
lsmod | awk '{ print $1 }' > necessary.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user