Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat /etc/udev/rules.d/99-mcp-usb.rules
- ACTION=="add", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="partition", RUN+="/usr/bin/systemd-run --no-block /home/eri/bin/mcp-mount.sh /dev/%k"
- #ACTION=="unmount", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="partition", RUN+="/usr/bin/systemd-run --no-block /home/eri/bin/mcp-umount.sh"
- ACTION=="remove", SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", RUN+="/usr/bin/systemd-run --no-block /home/eri/bin/clean-mounts.sh"
Advertisement
Add Comment
Please, Sign In to add comment