From 99166aebc250d954c6b097a90f782d452e2611ed Mon Sep 17 00:00:00 2001 From: Kinglong Mee Date: Tue, 13 Sep 2016 10:29:28 +0800 Subject: [PATCH] install: add scripts to .bash_profile for loading module automiclly Signed-off-by: Kinglong Mee --- Makefile | 1 + README.md | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ed0be03..a9500e5 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,7 @@ endif install: cp -f hid-rapoo.ko /lib/modules/`uname -r`/kernel/drivers/hid/ depmod + cat installdriver.sh >> ~/.bash_profile clean: rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions diff --git a/README.md b/README.md index fb74342..9ce61da 100644 --- a/README.md +++ b/README.md @@ -6,5 +6,6 @@ Compile the driver module with make, make install and run ./installdriver.sh. Job done! Then enjoy typing! -# Todo -Loads hid-rapoo.ko module automically when system startup. +# Notice +After installing new kernel(contains compile and install kernel), +you must reinstall hid-rapoo module again by "make install".