mneimeyer n00b
Joined: 14 Sep 2012 Posts: 10
|
Posted: Wed Aug 04, 2021 2:14 am Post subject: DVD Doesn't Trigger UDEV Rule |
|
|
I have a udev rule as /etc/udev/rules.d/01-dvdrip.rules which has this as the contents:
Code: | ACTION=="change", SUBSYSTEM=="block", ENV{DISK_MEDIA_CHANGE}=="1", ENV{ID_TYPE}=="cd", RUN+="/opt/arm/scripts/docker_arm_wrapper.sh %k"
|
I've checked that the script is executable, it does have #!/bin/bash as the first line and I've even stripped it down to nothing but the following:
Code: | #!/bin/bash
echo "Entering script" | logger -t ARM -s
|
I've rebooted countless times and checked my kernel config and everything else I can think of but I don't see udev firing the rule and outputting anything to /var/log/everything/current when I put a DVD in to the drive. When I eject/cycle the tray I can see the following line output by "udevadm monitor -u"
Code: | UDEV [3180.452801] change /devices/pci0000:00/0000:00:17.0/ata4/host3/target3:0:0/3:0:0:0/block/sr0 (block)
|
Is there anything else I should be checking because I'm at a loss. I've used other udev rules on other machines to rename my network interfaces (ethPub0 and ethPriv0 through ethPriv3 instead of enp0s0 style...) but this is the first time I've tried to do something "dynamic".
Thanks in advance for any advice! |
|