On Friday 11 November 2005 06:06, Michael James wrote:
Also, could someone explain how modprobe.conf, modprobe.conf.local, and modprobe.d/*.conf work, or point me to some doco. Not "one includes the other" but why : install net-pf-10 /bin/true turns it OFF.
This has been discussed many times on this list The "install" directive tells modprobe what to do when it tries to load the module *instead of* loading the module. In other words, if you don't have an install directive for the module, modprobe will just load it. If you do, then modprobe will run the command(s) you have listed there instead In this case, it will simply run /bin/true, which does nothing and returns a value that indicates that it was successful. In English it looks a little backwards, and you are tempted to use /bin/false instead, but that returns a value that indicates that it fails, which causes all sorts of problems. You want something there that returns "success" You could use any command there, and it will get run instead of loading the module. You can also use it to run "prerequisites", things that need to be done before loading the module. Then you would end the sequence with the command "modprobe --ignore-install <module name>" which will load the module without going to the "install" directive