Drop it in /usr/bin for easiest experience
Download: blacklist
OBS! To make it work you have to set path to your modules dir
script will modify its own file to contain new path to modules hence forth
blacklist -s /path/to/your/modules
(can be verified by running sed -n 21p blacklist in the same directory as blacklist)
Code: Select all
[root@alphaos modules]$ blacklist --help
Usage:
backlist [OPTION]... [FILES]...
-h, --help display usage message.
-v, --version display script version.
-f, --force Trying to force deactivation. Obs!
kill -9 is used. May cause dataloss!
-s, --set-modules-dir Set path to your own
modules directory
It defaults to:
/mnt/home/alphaos/modules
create a bundle wich blacklists kernel modules. if -f flag is
used the blacklisting is forced and kernel modules cannot be loaded
as dependencies or manually. The blacklisting is done by the creation
of /etc/modprobe.d/modprobe.conf
Examples:
blacklist soundcore snd
blacklist -f soundcore snd
blacklist --set-modules-dir /mnt/sda1/alphaos/modules