debian/nut-server.postinst: The udevd process is called systemd-udevd for quite sometimes already, properly detect whether it's running or not, this should fix the devices permissions for USB UPS's (LP: #1540008)
This commit is contained in:
		
							parent
							
								
									21b0ce7971
								
							
						
					
					
						commit
						d31c6dcb9b
					
				
					 2 changed files with 9 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								debian/nut-server.postinst
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								debian/nut-server.postinst
									
										
									
									
										vendored
									
									
								
							|  | @ -64,7 +64,7 @@ case "$1" in | |||
|     fi | ||||
| 
 | ||||
|     # ask udev to check for new udev rules | ||||
|     [ -x /etc/init.d/udev ] && pidof udevd > /dev/null \ | ||||
|     [ -x /etc/init.d/udev ] && pidof systemd-udevd > /dev/null \ | ||||
|       && udevadm trigger --subsystem-match=usb --action=change | ||||
| 
 | ||||
|     # 557178  udevadm trigger --subsystem-match=usb | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue