[__start_on_boot] alpine fix
This commit is contained in:
		
					parent
					
						
							
								707426d1f0
							
						
					
				
			
			
				commit
				
					
						dbf29c18c1
					
				
			
		
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -89,8 +89,10 @@ else
 | 
			
		|||
            rcctl ls on | grep "^${name}$" && state='present'
 | 
			
		||||
        ;;
 | 
			
		||||
        alpine)
 | 
			
		||||
            state="absent"
 | 
			
		||||
            rc-update show | sed 's/ *//' | grep -q "^${name} |" && state="present"
 | 
			
		||||
            state="$(rc-update show | sed 's/ *//' | grep -q "^${name} |" && echo present)"
 | 
			
		||||
            [ "$state" ] || state="absent"
 | 
			
		||||
        ;;
 | 
			
		||||
 | 
			
		||||
        *)
 | 
			
		||||
           echo "Unsupported os: $os" >&2
 | 
			
		||||
           exit 1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue