Clone rtl8812au GitHub repo
cd /usr/local/src && git clone https://github.com/aircrack-ng/rtl8812au.git && cd rtl8812au && git checkout v5.1.5
Add DKMS configuration file to rtl8812au source
cat << EOF | tee dkms.conf
PACKAGE_NAME="realtek-rtl88xxau"
PACKAGE_VERSION="5.1.5~20171216"
CLEAN="make clean"
BUILT_MODULE_NAME[0]=8812au
DEST_MODULE_LOCATION[0]="/updates"
MAKE[0]="'make' CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm && 'make' RTL8814=1 CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm"
BUILT_MODULE_NAME[1]=8814au
DEST_MODULE_LOCATION[1]="/updates"
AUTOINSTALL="yes"
EOF
Enable DKMS on rtl8812au source
dkms add -m rtl8812au -v 5.1.5
dkms build -m rtl8812au -v 5.1.5
dkms install -m rtl8812au -v 5.1.5
Disable DKMS on rtl8812au source
dkms remove rtl8812au/5.1.5 --all