Ensure to have startx available before ask for a X session.
This commit is contained in:
		
							parent
							
								
									e2061aa808
								
							
						
					
					
						commit
						d2941008a3
					
				
							
								
								
									
										2
									
								
								zlogin
								
								
								
								
							
							
						
						
									
										2
									
								
								zlogin
								
								
								
								
							|  | @ -62,7 +62,7 @@ getc () | |||
| ## Autorun an X session with some restrictions | ||||
| ## Set a ~/.noxorg file to work in tty only | ||||
| # If non-root session | ||||
| if [ ${USER} != "root" ]; then | ||||
| if [ ${USER} != "root" ] && [ $(command -v startx) ]; then | ||||
|   # If it's a VC console and | ||||
|   # no X session already launch and | ||||
|   # no ~/.noxorg file exist | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue