mirror of
				https://github.com/TommyTran732/Kernel-Module-Blacklist.git
				synced 2025-11-04 08:38:34 +01:00 
			
		
		
		
	Auto put output in modprobe.d
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user