diff --git a/dkms.conf b/dkms.conf index ea995a0..0c75a8f 100644 --- a/dkms.conf +++ b/dkms.conf @@ -5,3 +5,6 @@ CLEAN="make clean" BUILT_MODULE_NAME[0]="hid-sony-fix-dkms" DEST_MODULE_LOCATION[0]="/kernel/drivers/hid" AUTOINSTALL="yes" + +POST_INSTALL="dkms.post_install" +POST_REMOVE="dkms.post_remove" diff --git a/dkms.post_install b/dkms.post_install new file mode 100755 index 0000000..8668388 --- /dev/null +++ b/dkms.post_install @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "Installing modalias database..." +install -D -m 0644 -t /etc/modprobe.d etc-modprobe.d/hid-sony-blacklist.conf diff --git a/dkms.post_remove b/dkms.post_remove new file mode 100755 index 0000000..5410938 --- /dev/null +++ b/dkms.post_remove @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "Uninstalling modalias database..." +rm -f /etc/modprobe.d/hid-sony-blacklist.conf diff --git a/etc-modprobe.d/hid-sony-blacklist.conf b/etc-modprobe.d/hid-sony-blacklist.conf new file mode 100644 index 0000000..e6910aa --- /dev/null +++ b/etc-modprobe.d/hid-sony-blacklist.conf @@ -0,0 +1 @@ +blacklist hid_sony