Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. KERNEL=="sr{0-1}", SUBSYSTEM=="block", ACTION=="change", RUN+="/bin/systemctl restart cd-mount@%k.service"
  2.  
  3. [Unit]
  4. Description=Mount CD drive on %i
  5.  
  6. [Service]
  7. Type=oneshot
  8. RemainAfterExit=true
  9. ExecStart=/usr/local/bin/cd-mount.sh %i
  10. ExecStop=/usr/local/bin/cd-mount.sh %i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement