mirror of
				https://github.com/dockur/windows.git
				synced 2025-10-30 20:45:50 +00:00 
			
		
		
		
	Update power.sh
This commit is contained in:
		
							parent
							
								
									1854921582
								
							
						
					
					
						commit
						a3aaeb9cd4
					
				
					 1 changed files with 7 additions and 3 deletions
				
			
		
							
								
								
									
										10
									
								
								src/power.sh
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								src/power.sh
									
										
									
									
									
								
							|  | @ -29,14 +29,18 @@ boot() { | |||
| 
 | ||||
|   if [ -s "$QEMU_PTY" ]; then | ||||
|     if [ "$(stat -c%s "$QEMU_PTY")" -gt 7 ]; then | ||||
|       if ! grep -Fq "BOOTMGR is missing" "$QEMU_PTY"; then | ||||
|         info "Windows started succesfully, visit http://localhost:8006/ to view the screen..." | ||||
|         return 0 | ||||
|       if [[ "${BOOT_MODE,,}" == "windows_legacy" ]]; then | ||||
|         grep -Fq "No bootable device." "$QEMU_PTY" && finish 33 && return 0 | ||||
|         grep -Fq "BOOTMGR is missing" "$QEMU_PTY" && finish 33 && return 0 | ||||
|       fi | ||||
|       info "Windows started succesfully, visit http://localhost:8006/ to view the screen..." | ||||
|       return 0 | ||||
|     fi | ||||
|   fi | ||||
| 
 | ||||
|   error "Timeout while waiting for QEMU to boot the machine!" | ||||
| 
 | ||||
|   finish 33 | ||||
|   return 0 | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kroese
						Kroese