I use the rtl8812au driver for my wifi adapter. I have dkms setup so that after each kernel upgrade, it gets compiled. Here are the commands I ran to set that up:
DRV_NAME=rtl8812AU
DRV_VERSION=4.3.14
mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
git archive driver-${DRV_VERSION} | tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION}
dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
dkms install -m ${DRV_NAME} -v ${DRV_VERSION}
Now, after each reboot, my wifi adapter is disabled and to get it working again, I have to go back to the source directory of rtl8812au driver (I go to the original dir, not the dkms-made one), ensure that make has been run for this kernel, and run insmod 8812au.ko. At this point, my adapter fires up and works until the next boot.
How to fix dkms for this driver?