1 changed files with 4 additions and 1 deletions
			
			
		@ -1 +1,4 @@ | 
				
			|||||
ACTION=="add", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", ENV{ID_FS_USAGE}=="filesystem", RUN+="/usr/bin/sudo /usr/local/bin/usb-storage-action %E{DEVNAME}" | 
					# Rule for USB device connection | 
				
			||||
 | 
					ACTION=="add", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", ENV{ID_FS_USAGE}=="filesystem", RUN+="/usr/bin/sudo /usr/local/bin/usb-storage-action add %E{DEVNAME}" | 
				
			||||
 | 
					# Rule for USB device disconnection | 
				
			||||
 | 
					ACTION=="remove", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", ENV{ID_FS_USAGE}=="filesystem", RUN+="/usr/bin/sudo /usr/local/bin/usb-storage-action remove %E{DEVNAME}" | 
				
			||||
 | 
				
			|||||
					Loading…
					
					
				
		Reference in new issue