1 changed files with 5 additions and 0 deletions
			
			
		@ -0,0 +1,5 @@ | 
				
			|||||
 | 
					# Rule for DVD disk insertion | 
				
			||||
 | 
					#ACTION=="change", SUBSYSTEM=="block", KERNEL=="sr[0-9]*", ENV{ID_CDROM_MEDIA}=="1", RUN+="/usr/bin/sudo /usr/local/bin/dvd-storage-action add %E{DEVNAME}" | 
				
			||||
 | 
					# Rule for DVD disk removal | 
				
			||||
 | 
					#ACTION=="change", SUBSYSTEM=="block", KERNEL=="sr[0-9]*", ENV{ID_CDROM_MEDIA}!="1", RUN+="/usr/bin/sudo /usr/local/bin/dvd-storage-action remove %E{DEVNAME}" | 
				
			||||
 | 
					ACTION=="change", SUBSYSTEM=="block", KERNEL=="sr[0-9]*", ENV{ID_CDROM}=="1", RUN+="/usr/bin/sudo /usr/local/bin/dvd-storage-action %E{ACTION} %E{DEVNAME}" | 
				
			||||
					Loading…
					
					
				
		Reference in new issue