Comment Why this is a bad idea (Score 1) 29
I downloaded the script, modified its output to a non-privileged location,ran it as a non-privileged user, and eyeballed the results. It does do exactly what the author claims. What that means is that, just as a 'for example', if you ever need to plug in a usb device, let's say your keyboard dies, and you need to plug in a new one, well the new one had better be using the same driver as the old one, or you'll need to figure out how to modify the blacklist without keyboard access. You'll also need to remember that this issue will have that potential consequence and remember to correlate the new problem (new keyboard doesn't work) with what you did ages ago (blacklisted all unused kernel modules). Remember that stuff like bluetooth and samba are also kernel modules, so if you run the scri pt when those haven''t been activated since the current boot when you run the script, then those modules will also be blacklisted.