mirror of
https://github.com/gnab/rtl8812au
synced 2025-01-08 17:46:23 +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"
|
@echo "make config"
|
||||||
/bin/bash script/Configure script/config.in
|
/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
|
.PHONY: modules clean
|
||||||
|
|
||||||
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
|
$ sudo apt-get install build-essential dkms
|
||||||
```
|
```
|
||||||
|
|
||||||
The driver source must be copied to /usr/src/8812au-4.2.3
|
Install the driver to DKMS with:
|
||||||
|
|
||||||
Then add it to DKMS:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ sudo dkms add -m 8812au -v 4.2.3
|
sudo make dkms_install
|
||||||
$ sudo dkms build -m 8812au -v 4.2.3
|
|
||||||
$ sudo dkms install -m 8812au -v 4.2.3
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Check with:
|
|
||||||
```sh
|
|
||||||
$ sudo dkms status
|
|
||||||
```
|
|
||||||
Automatically load at boot:
|
Automatically load at boot:
|
||||||
```sh
|
```sh
|
||||||
$ echo 8812au | sudo tee -a /etc/modules
|
$ echo 8812au | sudo tee -a /etc/modules
|
||||||
```
|
```
|
||||||
|
|
||||||
Eventually remove from DKMS with:
|
Eventually remove from DKMS with:
|
||||||
```sh
|
```sh
|
||||||
$ sudo dkms remove -m 8812au -v 4.2.3 --all
|
$ sudo make dkms_remove
|
||||||
```
|
```
|
||||||
|
|
||||||
### References
|
### References
|
||||||
|
Loading…
Reference in New Issue
Block a user