From ac45a5ff8623666807d4d3d25d1c95b9118db6e4 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Sun, 29 Dec 2024 13:02:08 +0500 Subject: [PATCH] Added post install and post remove to blacklist hid-sony --- dkms.conf | 3 +++ dkms.post_install | 4 ++++ dkms.post_remove | 4 ++++ etc-modprobe.d/hid-sony-blacklist.conf | 1 + 4 files changed, 12 insertions(+) create mode 100755 dkms.post_install create mode 100755 dkms.post_remove create mode 100644 etc-modprobe.d/hid-sony-blacklist.conf 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