1 2 3 4 5 6 7 8 9 10 11 12 13 14
post_install() { systemctl preset eruption systemctl reload dbus.service udevadm control --reload-rules systemctl try-restart eruption.service || udevadm trigger -s usb } pre_remove() { systemctl stop eruption.service } post_remove() { systemctl daemon-reload }