trisquel|ubuntu)
# noticed in flidas.
#https://bugs.launchpad.net/ubuntu/+source/module-init-tools/+bug/240553
+ #https://wiki.debian.org/KernelModuleBlacklisting
+ #common advice when searching is to use /etc/modprobe.d/blacklist.conf,
+ #but that file won't work and will get automatically reverted
sudo rmmod evbug ||: # might not be loaded yet
- file=/etc/modprobe.d/blacklist.conf
+ file=/etc/modprobe.d/evbug.conf
line="blacklist evbug"
if ! grep -xFq "$line" $file; then
- sudo tee -a $file &>/dev/null <<<"$line"
+ sudo dd of=$file 2>/dev/null <<<"$line"
sudo depmod -a
sudo update-initramfs -u
fi