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
|
||||
# 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
|
||||
sort -u sample-data/vps/available/* > blacklist.txt
|
||||
sort -u sample-data/"${dataset}"/available/* > blacklist.txt
|
||||
|
||||
# Combine all sample data for necessary
|
||||
sort -u sample-data/vps/necessary/* > necessary.txt
|
||||
@ -40,7 +62,7 @@ sed -i '/^$/d' blacklist.txt
|
||||
|
||||
# Create final blacklist config
|
||||
while read -r KMOD; do
|
||||
echo "install ${KMOD} /bin/false" >> blacklist.conf
|
||||
echo "install ${KMOD} /bin/false" >> ${dataset}-blacklist.conf
|
||||
done < blacklist.txt
|
||||
|
||||
# Cleanup
|
||||
|
@ -1,11 +1,21 @@
|
||||
ebtables
|
||||
ebtable_
|
||||
ebt_
|
||||
exfat
|
||||
fat
|
||||
iptable_
|
||||
ipt_
|
||||
ip6table_
|
||||
ip6t_
|
||||
nft_
|
||||
nf_
|
||||
ntfs3
|
||||
nvme
|
||||
pvpanic
|
||||
hv_
|
||||
sata_
|
||||
vbox
|
||||
vfat
|
||||
xen-
|
||||
xt_
|
||||
xfs
|
Loading…
x
Reference in New Issue
Block a user