Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- KERNEL=="sr{0-1}", SUBSYSTEM=="block", ACTION=="change", RUN+="/bin/systemctl restart cd-mount@%k.service"
- [Unit]
- Description=Mount CD drive on %i
- [Service]
- Type=oneshot
- RemainAfterExit=true
- ExecStart=/usr/local/bin/cd-mount.sh %i
- ExecStop=/usr/local/bin/cd-mount.sh %i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement