mirror of
https://github.com/TommyTran732/Kernel-Module-Blacklist.git
synced 2025-02-23 21:11:15 +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
|
# Delete empty lines
|
||||||
sed -i '/^$/d' blacklist.txt
|
sed -i '/^$/d' blacklist.txt
|
||||||
|
|
||||||
|
# Delete old files
|
||||||
|
rm etc/modprobe.d/"${dataset}"-blacklist.conf
|
||||||
|
|
||||||
# Create final blacklist config
|
# Create final blacklist config
|
||||||
while read -r KMOD; do
|
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
|
done < blacklist.txt
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user