2012-12-21, 07:14
Looks like udev can launch a script when a disc is inserted and Ive been tryng to get udev to mount the bd with the mount command as this works with the play disc menu option. Here is the rule I have so far although it isnt working:
The run command works from the command line but doesnt work via the udev rule.. can anyone see what Im doing wrong in the above rule or know another way of doing this?
Code:
SUBSYSTEM=="block", KERNEL=="sr0", ENV{ID_CDROM_MEDIA_BD}=="1", RUN+="/bin/mount -o ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,umask=0077 /dev/sr0 /media/"
The run command works from the command line but doesnt work via the udev rule.. can anyone see what Im doing wrong in the above rule or know another way of doing this?