LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to stop a driver in kernel from bringing up wireless adapter? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-stop-a-driver-in-kernel-from-bringing-up-wireless-adapter-4175449414/)

breakbeat 02-10-2013 05:18 AM

How to stop a driver in kernel from bringing up wireless adapter?
 
Hello,

The driver for my wireless adapter is included with the linux kernel, and when booting my notebook, brings up the adapter.

I dont want this behaviour.

I want to be able to modprobe the driver as and when I need it on the desktop, but at all other times, have the adapter disabled.

Is there a way to stop the driver being loaded by the kernel at boot time?

goumba 02-10-2013 05:56 AM

breakbeat, if you're using a distro like Debian which has a /etc/modprobe.d directory, you can add a file there (say wireless-blacklist.conf), or add to an existing file where it will make sense (default Debian includes alsa and fbdev blacklists for which neither make sense to put a wifi module). Whatever the file, add the following line:

Code:

blacklist modulename

breakbeat 02-10-2013 05:59 AM

Thanks goumba :)


All times are GMT -5. The time now is 07:15 PM.