From 1097e4a01e6cf71ecb69f0a7ed04c35eef1e3235 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Fri, 3 Apr 2020 21:43:51 -0700 Subject: [PATCH] Updated linux install script, to check LONG_BIT when x86-64 is detected --- agents/meshinstall-linux.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/agents/meshinstall-linux.sh b/agents/meshinstall-linux.sh index 033ab750..294e1f54 100644 --- a/agents/meshinstall-linux.sh +++ b/agents/meshinstall-linux.sh @@ -75,7 +75,15 @@ CheckInstallAgent() { machineid=30 else # Linux x86, 64 bit - machineid=6 + bitlen=$( getconf LONG_BIT ) + if [ $bitlen == '32' ] + then + # 32 bit OS + machineid=5 + else + # 64 bit OS + machineid=6 + fi fi fi if [ $machinetype == 'x86' ] || [ $machinetype == 'i686' ] || [ $machinetype == 'i586' ]