j0h

derp

j0h
May 20th, 2026
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. $ cat /etc/udev/rules.d/99-mcp-usb.rules
  2. 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"
  3.  
  4. #ACTION=="unmount", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="partition", RUN+="/usr/bin/systemd-run --no-block /home/eri/bin/mcp-umount.sh"
  5.  
  6. ACTION=="remove", SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", RUN+="/usr/bin/systemd-run --no-block /home/eri/bin/clean-mounts.sh"
  7.  
Advertisement
Add Comment
Please, Sign In to add comment