mirror of
https://github.com/TommyTran732/Kernel-Module-Blacklist.git
synced 2025-02-23 13:09:23 +01:00
Update driver blacklists
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
fcbc2627bf
commit
f7fbb01a0c
3981
etc/modprobe.d/workstation-blacklist.conf
Normal file
3981
etc/modprobe.d/workstation-blacklist.conf
Normal file
File diff suppressed because it is too large
Load Diff
@ -14,8 +14,30 @@
|
|||||||
# License for the specific language governing permissions and limitations under
|
# License for the specific language governing permissions and limitations under
|
||||||
# the License.
|
# the License.
|
||||||
|
|
||||||
|
output(){
|
||||||
|
echo -e '\e[36m'"$1"'\e[0m';
|
||||||
|
}
|
||||||
|
|
||||||
|
dataset_selection() {
|
||||||
|
output 'Which dataset do you want to generate the kmod blacklist for?'
|
||||||
|
output '1) VPS'
|
||||||
|
output '2) Workstation'
|
||||||
|
output 'Insert the number of your selection:'
|
||||||
|
read -r choice
|
||||||
|
case $choice in
|
||||||
|
1 ) dataset='vps'
|
||||||
|
;;
|
||||||
|
2 ) dataset='workstation'
|
||||||
|
;;
|
||||||
|
* ) output 'You did not enter a valid selection.'
|
||||||
|
dataset_selection
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
dataset_selection
|
||||||
|
|
||||||
# Combine all sample data for available
|
# Combine all sample data for available
|
||||||
sort -u sample-data/vps/available/* > blacklist.txt
|
sort -u sample-data/"${dataset}"/available/* > blacklist.txt
|
||||||
|
|
||||||
# Combine all sample data for necessary
|
# Combine all sample data for necessary
|
||||||
sort -u sample-data/vps/necessary/* > necessary.txt
|
sort -u sample-data/vps/necessary/* > necessary.txt
|
||||||
@ -40,7 +62,7 @@ sed -i '/^$/d' blacklist.txt
|
|||||||
|
|
||||||
# Create final blacklist config
|
# Create final blacklist config
|
||||||
while read -r KMOD; do
|
while read -r KMOD; do
|
||||||
echo "install ${KMOD} /bin/false" >> blacklist.conf
|
echo "install ${KMOD} /bin/false" >> ${dataset}-blacklist.conf
|
||||||
done < blacklist.txt
|
done < blacklist.txt
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
@ -1,11 +1,21 @@
|
|||||||
|
ebtables
|
||||||
|
ebtable_
|
||||||
|
ebt_
|
||||||
|
exfat
|
||||||
|
fat
|
||||||
iptable_
|
iptable_
|
||||||
|
ipt_
|
||||||
|
ip6table_
|
||||||
ip6t_
|
ip6t_
|
||||||
nft_
|
nft_
|
||||||
nf_
|
nf_
|
||||||
|
ntfs3
|
||||||
nvme
|
nvme
|
||||||
pvpanic
|
pvpanic
|
||||||
hv_
|
hv_
|
||||||
sata_
|
sata_
|
||||||
vbox
|
vbox
|
||||||
|
vfat
|
||||||
xen-
|
xen-
|
||||||
xt_
|
xt_
|
||||||
|
xfs
|
Loading…
x
Reference in New Issue
Block a user