In my Linux distribution I use an Edimax EW-7811UTC Wi-Fi USB Adapter.
Installation of the driver rtl8812au
I have installed the driver rtl8812au
from source by following steps:
- building of the kernel module
88XXau.ko
(commandmake
) from source - installing it in the directory:
/lib/modules/$(uname -r)/kernel/drivers/net/wireless/
(commandmake install
)
This driver support many Wi-Fi adapter, but I need to write a script or something else to load the module 88XXau.ko
only if the Wi-Fi adapter is exactly the Edimax EW-7811UTC.
The module 88XXau.ko is automatically loaded
I'd like to show 2 scenarios:
by the command
lsmod
, I have checked that at boot time if the Wifi-USB adapter is not plugged in, the module88XXau.ko
is not loaded.when I plug in the WiFi-USB adapter the kernel and
udev
automatically load the module (I have check this by the commandlsmod | grep 88XXau
), but I can not find the specificudev rule
which executes this loading.
I haven't written any udev rule
, so in the Linux distribution must be present a default udev rule
responsible of this automatic loading of the kernel module 88XXau.ko
.
The problem: find the udev rule
To reach my goal that is to load the module only if the WiFi adapter is the Edimax EW-7811UTC, I need to disable the automatism so I'm here to ask if someone could show me a procedure to find the default udev rule
for this driver?
Thanks