Update KERNEL.md

This commit is contained in:
mayfrost 2018-07-11 10:47:26 +00:00 committed by GitHub
parent a73f6dc5f6
commit b75f5b1222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,11 +174,13 @@ To update modules automatically when changing a kernel use __DKMS__. Requires th
* Create a __dkms.conf__ file in the directory. * Create a __dkms.conf__ file in the directory.
`vi /usr/src/<MODULE>-<MODULE_VERSION>/dkms.conf` `vi /usr/src/<MODULE>-<MODULE_VERSION>/dkms.conf`
* Edit __dkms.conf__. * Edit __dkms.conf__.
`PACKAGE_NAME="<MODULE>"` ```
`PACKAGE_VERSION="<MODULE_VERSION>"` PACKAGE_NAME="<MODULE>"
`BUILT_MODULE_NAME[0]="<MODULE>"` PACKAGE_VERSION="<MODULE_VERSION>"
`DEST_MODULE_LOCATION[0]="/kernel/<SECTION>/<MODULE>/"` BUILT_MODULE_NAME[0]="<MODULE>"
`AUTOINSTALL="yes"` DEST_MODULE_LOCATION[0]="/kernel/<SECTION>/<MODULE>/"
AUTOINSTALL="yes"
```
* Add __<MODULE>__ and __<MODULE_VERSION>__ to __DKMS__. * Add __<MODULE>__ and __<MODULE_VERSION>__ to __DKMS__.
`dkms add -m <MODULE> -v <MODULE_VERSION>` `dkms add -m <MODULE> -v <MODULE_VERSION>`
* Compile the module with __DKMS__. * Compile the module with __DKMS__.