kernel module disable / blacklist
tomek at cedro.info
Sun May 31 19:47:25 UTC 2020
On Sun, May 31, 2020 at 6:22 PM Tomasz CEDRO wrote:
> I am creating an embedded system that exposes the serial port over
> USB. This causes auto-load ucom, umodem, u3g modules, even though I
> have removed them by hand. Because of the development steps I need to
> plug and unplug that device quite often. It would be lovely to be able
> to blacklist a given set of modules so they does not auto-load on
> device connect. `module_blacklist` in `loader.conf` does not seem to
> work at runtime.
> Is there a simple way to temporarily blacklist given modules?
> I would prefer not to modify the devd configurations because also I
> have a u3g modem in my laptop that I would like to use by default.
> Temporary blacklist should ideally have a precedence over devd.
`service devd stop` for testing and then `service devd start` did the
trick as it was the one loading modules.
No need to blacklist a module, sorry, I was curious if there was such
option in FreeBSD :-)
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
More information about the freebsd-questions