Skip to content

Instantly share code, notes, and snippets.

@strezh
Created December 20, 2016 11:01
Show Gist options
  • Save strezh/01a1849128109e53a65df696d1b2c113 to your computer and use it in GitHub Desktop.
Save strezh/01a1849128109e53a65df696d1b2c113 to your computer and use it in GitHub Desktop.
Copy kernel module <module> to the drivers directory.
$ sudo cp <module>.ko /lib/modules/$(uname -r)/kernel/drivers/
Add the simple name of my module to the file /etc/modules. You can edit the file or just append to it as shown here.
$ echo '<module>' | sudo tee -a /etc/modules
Update the list of module dependencies.
$ sudo depmod
Reboot the computer and voila, it worked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment