summarylogtreecommitdiffstats
path: root/libcmmk-git.install
diff options
context:
space:
mode:
Diffstat (limited to 'libcmmk-git.install')
-rw-r--r--libcmmk-git.install23
1 files changed, 23 insertions, 0 deletions
diff --git a/libcmmk-git.install b/libcmmk-git.install
new file mode 100644
index 000000000000..de0e22d606b2
--- /dev/null
+++ b/libcmmk-git.install
@@ -0,0 +1,23 @@
+## arg 1: the new package version
+post_install() {
+ echo "
+If you want to control the LEDs of your CoolerMaster keyboard as regular
+user, you need to install the appropriate udev rules. You can use the
+default rule file from the repository or provide your own. To use the
+default one, run this as root:
+
+ cp /usr/share/doc/libcmmk/20-coolermaster.rules /etc/udev/rules.d/
+ udevadm control --reload-rules && udevadm trigger
+"
+}
+
+## arg 1: the old package version
+post_remove() {
+ echo "
+If you installed an udev rule file to control your CoolerMaster keyboard
+as regular user, don't forget to remove it:
+
+ rm /etc/udev/rules.d/20-coolermaster.rules
+"
+}
+# vim: set ts=2 sw=2 et: