mirror of
				https://github.com/linuxserver/docker-webtop.git
				synced 2025-10-30 19:03:59 +01:00 
			
		
		
		
	disable GPU in RPM distros on cpu only
This commit is contained in:
		
							parent
							
								
									534153e9ae
								
							
						
					
					
						commit
						a0540b5522
					
				| @ -7,9 +7,16 @@ if ! pgrep chromium > /dev/null;then | |||||||
|   rm -f $HOME/.config/chromium/Singleton* |   rm -f $HOME/.config/chromium/Singleton* | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  | # Disable GPU without Nvidia | ||||||
|  | if which nvidia-smi; then | ||||||
|  |   DISABLE_GPU="" | ||||||
|  | else | ||||||
|  |   DISABLE_GPU="--disable-gpu" | ||||||
|  | fi | ||||||
|  | 
 | ||||||
| # Run normally on privved containers or modified un non priv | # Run normally on privved containers or modified un non priv | ||||||
| if grep -q 'Seccomp:.0' /proc/1/status; then | if grep -q 'Seccomp:.0' /proc/1/status; then | ||||||
|   ${BIN} --password-store=basic "$@" |   ${BIN} --password-store=basic ${DISABLE_GPU} "$@" | ||||||
| else | else | ||||||
|   ${BIN} --password-store=basic --no-sandbox --test-type "$@" |   ${BIN} --password-store=basic ${DISABLE_GPU} --no-sandbox --test-type "$@" | ||||||
| fi | fi | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user