Add UEFI check; modify check loop
This commit is contained in:
		
							parent
							
								
									99dbb4ab20
								
							
						
					
					
						commit
						f1ba4f6ecb
					
				| @ -1,6 +1,6 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
| 
 | 
 | ||||||
| ping -c 1 archlinux.org 2>/tmp/arch-maride-flavour_checks_error.log 1>/tmp/arch-maride-flavour_checks_out.log | ping -c 1 archlinux.org 2>/tmp/arch-maride-flavour_checks_internet_error.log 1>/tmp/arch-maride-flavour_checks_internet_out.log | ||||||
| return=$? | return=$? | ||||||
| 
 | 
 | ||||||
| if [ "$return" -eq 0 ]; then | if [ "$return" -eq 0 ]; then | ||||||
|  | |||||||
							
								
								
									
										11
									
								
								checks/uefi.check
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								checks/uefi.check
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,11 @@ | |||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
|  | ls /sys/firmware/efi/efivars 2>/tmp/arch-maride-flavour_checks_uefi_error.log 1>/tmp/arch-maride-flavour_checks_uefi_out.log | ||||||
|  | return=$? | ||||||
|  | 
 | ||||||
|  | if [ "$return" -eq 0 ]; then | ||||||
|  | 	exit 0 | ||||||
|  | else | ||||||
|  | 	echo "~> This doesn't seem to be an UEFI boot. Please boot UEFI." | ||||||
|  | 	exit 1 | ||||||
|  | fi | ||||||
| @ -19,8 +19,9 @@ fi | |||||||
| for check in checks/*.check | for check in checks/*.check | ||||||
| do | do | ||||||
| 	echo "=> Running check '$check'..." | 	echo "=> Running check '$check'..." | ||||||
| 	. $check | 	$($check) | ||||||
| 	if [ "$?" -eq 0 ]; then | 	return=$? | ||||||
|  | 	if [ "$return" -ne 0 ]; then | ||||||
| 		echo "=> Check failed. Fix it, maybe." | 		echo "=> Check failed. Fix it, maybe." | ||||||
| 		exit | 		exit | ||||||
| 	fi | 	fi | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user