diff --git a/README.md b/README.md index d9efbc3..5d3713a 100644 --- a/README.md +++ b/README.md @@ -35,10 +35,13 @@ If your card is supported, there should be no error. Otherwise, you get a "No such device" (ENODEV) error. Check your kernel log (dmesg) for more information. -### DKMS support +DKMS support +------------ -inside the "dkms" directory a file is provided for dkms support. Note that the -kernel version must be changed. +Change `#MODULE_VERSION#` to the current version of bbswitch. Copy the +Makefile, C source and dkms.conf file to `/usr/src/bbswitch-VERSION/` (replace +VERSION with the current version of bbswitch which has been inserted for +`#MODULE_VERSION#`. Usage ----- diff --git a/dkms/dkms.conf b/dkms/dkms.conf index e057a53..0c5d310 100644 --- a/dkms/dkms.conf +++ b/dkms/dkms.conf @@ -1,6 +1,6 @@ PACKAGE_NAME="bbswitch" -PACKAGE_VERSION="REPLACE" -MAKE[0]="make" +PACKAGE_VERSION="#MODULE_VERSION#" +MAKE[0]="make KVERSION=$kernelver" CLEAN="make clean" BUILT_MODULE_NAME[0]="bbswitch" DEST_MODULE_LOCATION[0]="/kernel/drivers/acpi"