summarylogtreecommitdiffstats
path: root/eruption.install
blob: 7bd46c1a161e2c4178643264577ff5232f160c7a (plain)
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
}