summarylogtreecommitdiffstats
path: root/hid-tmff2-dkms-git.install
blob: af13b56679f15c69e9ea0bccbeeefbb7c44131cc (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
# Do NOT load the module automatically:
# https://wiki.archlinux.org/title/DKMS_package_guidelines#Module_loading_automatically_in_.install
#
# Relevant Documentation:
# https://wiki.archlinux.org/title/DKMS_package_guidelines#.install

post_install() {
  # Unloading hid_thrustmaster to avoid conflict
  # See the .conf file containing the blacklist for info why
  # But despite blacklisting it we unload it immedialty for make sure it is gone
  rmmod hid_thrustmaster

  # dkms install -m hid-tmff2 -v ${1%%-*}
}

# pre_upgrade() {
#   pre_remove ${2%%-*}
# }

post_upgrade() {
  # post_install ${1%%-*}
  post_install
}

# pre_remove() {
#   dkms remove -m hid-tmff2 -v ${1%%-*} --all
# }