mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			554 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			554 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
--- install_prereq.orig	2023-04-01 01:41:56.859545082 -0500
 | 
						|
+++ install_prereq	2023-04-01 01:44:28.744269701 -0500
 | 
						|
@@ -193,8 +193,13 @@
 | 
						|
 		tocheck="${tocheck} ^${pack}$ ~P^${pack}$"
 | 
						|
 	done
 | 
						|
 	pkgs=$(aptitude -F '%c %p' search ${tocheck} 2>/dev/null | awk '/^p/{print $2}')
 | 
						|
+	arch=$(uname -m)
 | 
						|
 	if [ ${#pkgs} -ne 0 ]; then
 | 
						|
-		echo $pkgs | sed -r -e "s/ ?[^ :]+:i386//g"
 | 
						|
+		if [ "$arch" = "x86_64" ]; then
 | 
						|
+			echo $pkgs | sed -r -e "s/ ?[^ :]+:i386//g"
 | 
						|
+		elif [ "$arch" = "aarch64" ]; then
 | 
						|
+			echo $pkgs | sed -r -e "s/ ?[^ :]+:armhf//g"
 | 
						|
+		fi
 | 
						|
 	fi
 | 
						|
 }
 | 
						|
 
 |