mirror of
https://github.com/TommyTran732/Kernel-Module-Blacklist.git
synced 2025-02-23 13:09:23 +01:00
Auto put output in modprobe.d
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
83126415fc
commit
39cc1c443d
@ -60,9 +60,12 @@ done < kmod-filter-all
|
||||
# Delete empty lines
|
||||
sed -i '/^$/d' blacklist.txt
|
||||
|
||||
# Delete old files
|
||||
rm etc/modprobe.d/"${dataset}"-blacklist.conf
|
||||
|
||||
# Create final blacklist config
|
||||
while read -r KMOD; do
|
||||
echo "install ${KMOD} /bin/false" >> "${dataset}"-blacklist.conf
|
||||
echo "install ${KMOD} /bin/false" >> etc/modprobe.d/"${dataset}"-blacklist.conf
|
||||
done < blacklist.txt
|
||||
|
||||
# Cleanup
|
||||
|
Loading…
x
Reference in New Issue
Block a user