From 9cc507d7df1c40efa0fba083711c561830b0cb5b Mon Sep 17 00:00:00 2001 From: Kiril Vladimiroff Date: Mon, 19 Aug 2019 15:21:32 +0300 Subject: [PATCH] Reload udev rules after (un)install and upgrade Otherwise users have to reboot before being able to actually use the application. --- onlykey.install | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 onlykey.install diff --git a/onlykey.install b/onlykey.install new file mode 100644 index 0000000..64a39eb --- /dev/null +++ b/onlykey.install @@ -0,0 +1,11 @@ +post_install() { + udevadm control --reload +} + +post_upgrade() { + udevadm control --reload +} + +post_remove() { + udevadm control --reload +}