Reload udev rules after (un)install and upgrade

Otherwise users have to reboot before being able to actually use the
application.
This commit is contained in:
Kiril Vladimiroff 2019-08-19 15:21:32 +03:00
parent e05c489e37
commit 9cc507d7df
No known key found for this signature in database
GPG Key ID: E8AC87A89B24A670
1 changed files with 11 additions and 0 deletions

11
onlykey.install Normal file
View File

@ -0,0 +1,11 @@
post_install() {
udevadm control --reload
}
post_upgrade() {
udevadm control --reload
}
post_remove() {
udevadm control --reload
}