From 4fe8608c914f5592f78e4ab4486cda7077817675 Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Tue, 12 Mar 2013 09:37:37 -0500
Subject: [PATCH] scripts: sync with master

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 tools/host_det.sh | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/tools/host_det.sh b/tools/host_det.sh
index afffb4dfd..41322a6f4 100755
--- a/tools/host_det.sh
+++ b/tools/host_det.sh
@@ -93,6 +93,7 @@ Missing mkimage command.
 function debian_regs
 {
 	unset deb_pkgs
+	dpkg -l | grep bc >/dev/null || deb_pkgs+="bc "
 	dpkg -l | grep build-essential >/dev/null || deb_pkgs+="build-essential "
 	dpkg -l | grep device-tree-compiler >/dev/null || deb_pkgs+="device-tree-compiler "
 	dpkg -l | grep lsb-release >/dev/null || deb_pkgs+="lsb-release "
@@ -138,19 +139,20 @@ function debian_regs
 				;;
 			esac
 
-#			case "${deb_distro}" in
-#			wheezy)
-#				unset wheezy_multiarch
-#				dpkg -l | grep ia32-libs-i386 >/dev/null || wheezy_multiarch=1
-#				;;
-#			esac
+			case "${deb_distro}" in
+			wheezy)
+				unset wheezy_multiarch
+				dpkg -l | grep ia32-libs >/dev/null || wheezy_multiarch=1
+				;;
+			esac
 
 			if [ "${wheezy_multiarch}" ] ; then
-				deb_pkgs+="ia32-libs-i386 "
 				echo "-----------------------------"
-				echo "Debian Wheezy:"
+				echo "Note: for Debian Wheezy `uname -m`: to install ia32-libs:"
+				echo "-----------------------------"
 				echo "sudo dpkg --add-architecture i386"
 				echo "sudo apt-get update"
+				echo "sudo apt-get install ia32-libs"
 				echo "-----------------------------"
 			fi
 		fi
-- 
GitLab