From 3b419d61d91adfecfc55d641a638276c651f97bb Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Sun, 29 Jun 2014 23:23:18 +0200 Subject: dkms support --- README | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'README') diff --git a/README b/README index b5a58cf..6211448 100644 --- a/README +++ b/README @@ -7,34 +7,36 @@ Don't be evil. ** COMPILE ** - $ make + $ make ** LOAD ** - # insmod evspy.ko + # insmod evspy.ko ** UNLOAD ** - # rmmod evspy + # rmmod evspy ** IS IT ALREADY LOADED? ** - $ lsmod | grep evspy + $ modinfo evspy ** PERSISTENCE ** -If you want evspy to be loaded every time system boots, copy it into your -kernel module dir: - # cp evspy.ko /lib/modules/$(uname -r)/kernel/drivers/input/evspy.ko +* With dkms: + # make [install, uninstall] -and update module database: - # depmod -a +* Manually: + Copy it into your kernel module dir: + # cp evspy.ko /lib/modules/$(uname -r)/kernel/drivers/input/evspy.ko -(In some distros it could also be necessary to add it to some rc/config file) + and update module database: + # depmod -a + (in some distros you could also need to add it to some rc/config file) -Once it has been installed, you can load it when you want with - # modprobe evspy + Once it has been installed, you can load it when you want with + # modprobe evspy ** OTHER ** @@ -43,10 +45,10 @@ A patch is supplied (evspy.patch) to be able to compile a kernel with evspy included. If KERN is the directory where your kernel is located, just copy the patch there (KERN/) and copy all the evspy files (*.c, *.h, maps, kmap) to KERN/drivers/input/. Then, cd to KERN and apply the patch: - $ patch -p1 < evspy.patch + $ patch -p1 < evspy.patch Then you should be able to configure the kernel to include evspy just like any other module: - $ make menuconfig - Device Drivers --> Input device support --> Event based keylogger - $ ... + $ make menuconfig + Device Drivers --> Input device support --> Event based keylogger + $ ... -- cgit v1.2.3