mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-28 18:20:09 +00:00
12 lines
588 B
Plaintext
12 lines
588 B
Plaintext
# Originally from https://serverfault.com/a/767079
|
|
# Run a mount script through systemd on any mmcblk* and sd* activity
|
|
|
|
KERNEL!="mmcblk*", GOTO="steamos_automount_end"
|
|
ENV{ID_FS_USAGE}!="filesystem", GOTO="steamos_automount_end"
|
|
|
|
# The service expects to be asynchronous and shouldn't block udev rules
|
|
ACTION=="add", RUN+="/usr/bin/systemd-run --no-block --collect /usr/libexec/hwsupport/block-device-event.sh add %k"
|
|
ACTION=="remove", RUN+="/usr/bin/systemd-run --no-block --collect /usr/libexec/hwsupport/block-device-event.sh remove %k"
|
|
|
|
LABEL="steamos_automount_end"
|