blob: e158bc62548b404403c2d39657a70f279bcbfb29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
From f814e9262308167161c2e688ce12aa77c0a5e02a Mon Sep 17 00:00:00 2001
From: Tiago de Paula <tiagodepalves@gmail.com>
Date: Sat, 14 Jun 2025 18:23:40 -0300
Subject: [PATCH] fix: drop /etc files for Arch Linux
This patch disables install of modprobe and udev file in '/etc' at
DKMS step. For Arch at least, these files usually go on '/usr/lib'
when they aren't actual user files.
---
hid-xpadneo/dkms.post_install | 10 ----------
hid-xpadneo/dkms.post_remove | 10 ----------
2 files changed, 20 deletions(-)
diff --git a/hid-xpadneo/dkms.post_install b/hid-xpadneo/dkms.post_install
index 96a753f..97a8d03 100755
--- a/hid-xpadneo/dkms.post_install
+++ b/hid-xpadneo/dkms.post_install
@@ -21,13 +21,3 @@ else
echo "Y" >"${DISABLE_ERTM}"
fi
fi
-
-echo "Installing modalias database..."
-install -D -m 0644 -t /etc/modprobe.d etc-modprobe.d/xpadneo.conf
-
-echo "Installing udev rules..."
-install -D -m 0644 -t /etc/udev/rules.d etc-udev-rules.d/60-xpadneo.rules
-install -D -m 0644 -t /etc/udev/rules.d etc-udev-rules.d/70-xpadneo-disable-hidraw.rules
-
-echo "Reloading udev..."
-udevadm control --reload
diff --git a/hid-xpadneo/dkms.post_remove b/hid-xpadneo/dkms.post_remove
index 3a7a17d..8f72a03 100755
--- a/hid-xpadneo/dkms.post_remove
+++ b/hid-xpadneo/dkms.post_remove
@@ -4,13 +4,3 @@
ERTM_OVERRIDE="/etc/modprobe.d/99-xpadneo-bluetooth.conf"
[ -L "${ERTM_OVERRIDE}" ] || { echo "Uninstalling ERTM override..."; rm -f "${ERTM_OVERRIDE}"; }
-
-echo "Uninstalling modalias database..."
-rm -f /etc/modprobe.d/xpadneo.conf
-
-echo "Uninstalling udev rules..."
-rm -f /etc/udev/rules.d/70-xpadneo-disable-hidraw.rules
-rm -f /etc/udev/rules.d/60-xpadneo.rules
-
-echo "Reloading udev..."
-udevadm control --reload
--
2.49.0
|