Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DVD Doesn't Trigger UDEV Rule
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mneimeyer
n00b
n00b


Joined: 14 Sep 2012
Posts: 10

PostPosted: Wed Aug 04, 2021 2:14 am    Post subject: DVD Doesn't Trigger UDEV Rule Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum