Skip to content

Commit 4b99a4c

Browse files
committed
Add depmod configuration installation
Add installation of a depmod configuration file overriding the hid-huion module location. Remove manual override instructions from README.md.
1 parent 089b775 commit 4b99a4c

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ KDIR := /lib/modules/$(shell uname -r)/build
55
PWD := $(shell pwd)
66
modules modules_install clean:
77
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) $@
8-
modules_depmod: modules_install
8+
conf_install:
9+
install -D -m 0644 hid-huion.conf /etc/depmod.d/hid-huion.conf
10+
modules_depmod: modules_install conf_install
911
depmod -a
1012
udev_install:
1113
install hid-rebind /sbin

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ installing appropriate version of "linux-headers" package.
2929

3030
To build the driver run "make" in the driver's source directory.
3131

32-
If you run Ubuntu or a derived distro, you might need to prepend "extra" to
33-
the directory search list in /etc/depmod/ubuntu.conf before installation. Put
34-
it right after the "search" command word and before any other directories, so
35-
the installed driver takes precedence over the stock driver in v3.11 and later
36-
kernels. For example, on Ubuntu 13.10 /etc/depmod/ubuntu.conf would have to
37-
become this:
38-
39-
search extra updates ubuntu built-in
40-
4132
To install the driver and the associated rebinding script run "make install"
4233
as root in the source directory.
4334

hid-huion.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Depmod(8) configuration for hid-huion driver
2+
#
3+
# Load hid-huion driver from the "extra" module subdirectory
4+
override hid-huion * extra

0 commit comments

Comments
 (0)