1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
post_install() { ## Load uinput if it's unloaded /usr/bin/grep -q 'uinput' /proc/modules if [ ! $? -eq 0 ] && [ -d "/lib/modules/$(uname -r)" ] then /usr/bin/modprobe uinput fi ## reload udev rules /usr/bin/udevadm control --reload-rules } post_upgrade() { /usr/bin/udevadm control --reload-rules } post_remove() { post_upgrade }