Updated linux install script, to check LONG_BIT when x86-64 is detected

Bryan Roe committed Apr 3, 2020 at 21:43 UTC 726d87362a944901f2763edbe61254b3173a8cb2
1 file changed +9 -1
agents/meshinstall-linux.sh
+9 -1
@@ -75,7 +75,15 @@ CheckInstallAgent() {
75 machineid=30
76 else
77 # Linux x86, 64 bit
78 - machineid=6
78 + bitlen=$( getconf LONG_BIT )
79 + if [ $bitlen == '32' ]
80 + then
81 + # 32 bit OS
82 + machineid=5
83 + else
84 + # 64 bit OS
85 + machineid=6
86 + fi
87 fi
88 fi
89 if [ $machinetype == 'x86' ] || [ $machinetype == 'i686' ] || [ $machinetype == 'i586' ]