overlay: replace systemd drop-in with an environment file
Now that /etc/default/repowerd is available, let's use that instead of a drop-in file which requires overlaying a directory. Fixes: https://gitlab.com/ubports/porting/community-ports/android11/fairphone-4/fairphone-fp4/-/issues/60
This commit is contained in:
		
							
								
								
									
										3
									
								
								overlay/system/etc/default/repowerd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								overlay/system/etc/default/repowerd
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
# Android lights HAL is present, but does not work correctly with repowerd
 | 
			
		||||
REPOWERD_BACKLIGHT_BACKEND=sysfs
 | 
			
		||||
REPOWERD_DISABLE_BOOSTER=true
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
Temporary until /etc/default/repowerd is available.
 | 
			
		||||
@@ -1,4 +0,0 @@
 | 
			
		||||
[Service]
 | 
			
		||||
# Android lights HAL is present, but does not work correctly with repowerd
 | 
			
		||||
Environment=REPOWERD_BACKLIGHT_BACKEND=sysfs
 | 
			
		||||
Environment=REPOWERD_DISABLE_BOOSTER=true
 | 
			
		||||
		Reference in New Issue
	
	Block a user