mirror of
https://github.com/gnab/rtl8812au
synced 2025-01-06 14:16:19 +00:00
Merge pull request #206 from RICCIARDI-Adrien/master
Easier DKMS installation/removal
This commit is contained in:
commit
0e042e7445
14
Makefile
14
Makefile
@ -1082,6 +1082,20 @@ config_r:
|
||||
@echo "make config"
|
||||
/bin/bash script/Configure script/config.in
|
||||
|
||||
DRIVER_VERSION = $(shell grep "#define DRIVERVERSION" include/rtw_version.h | awk '{print $$3}' | tr -d v\")
|
||||
|
||||
dkms_install:
|
||||
mkdir -p /usr/src/8812au-$(DRIVER_VERSION)
|
||||
cp -r * /usr/src/8812au-$(DRIVER_VERSION)
|
||||
dkms add -m 8812au -v $(DRIVER_VERSION)
|
||||
dkms build -m 8812au -v $(DRIVER_VERSION)
|
||||
dkms install -m 8812au -v $(DRIVER_VERSION)
|
||||
dkms status
|
||||
|
||||
dkms_remove:
|
||||
dkms remove 8812au/$(DRIVER_VERSION) --all
|
||||
rm -rf /usr/src/8812au-$(DRIVER_VERSION)
|
||||
|
||||
.PHONY: modules clean
|
||||
|
||||
clean:
|
||||
|
16
README.md
16
README.md
@ -58,27 +58,19 @@ Automatically rebuilds and installs on kernel updates. DKMS is in official sourc
|
||||
$ sudo apt-get install build-essential dkms
|
||||
```
|
||||
|
||||
The driver source must be copied to /usr/src/8812au-4.2.3
|
||||
|
||||
Then add it to DKMS:
|
||||
|
||||
Install the driver to DKMS with:
|
||||
```sh
|
||||
$ sudo dkms add -m 8812au -v 4.2.3
|
||||
$ sudo dkms build -m 8812au -v 4.2.3
|
||||
$ sudo dkms install -m 8812au -v 4.2.3
|
||||
sudo make dkms_install
|
||||
```
|
||||
|
||||
Check with:
|
||||
```sh
|
||||
$ sudo dkms status
|
||||
```
|
||||
Automatically load at boot:
|
||||
```sh
|
||||
$ echo 8812au | sudo tee -a /etc/modules
|
||||
```
|
||||
|
||||
Eventually remove from DKMS with:
|
||||
```sh
|
||||
$ sudo dkms remove -m 8812au -v 4.2.3 --all
|
||||
$ sudo make dkms_remove
|
||||
```
|
||||
|
||||
### References
|
||||
|
Loading…
Reference in New Issue
Block a user