mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 22:55:52 -05:00
Updated linux install script, to check LONG_BIT when x86-64 is detected
This commit is contained in:
parent
8fbd948e77
commit
1097e4a01e
@ -75,7 +75,15 @@ CheckInstallAgent() {
|
|||||||
machineid=30
|
machineid=30
|
||||||
else
|
else
|
||||||
# Linux x86, 64 bit
|
# 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
|
||||||
fi
|
fi
|
||||||
if [ $machinetype == 'x86' ] || [ $machinetype == 'i686' ] || [ $machinetype == 'i586' ]
|
if [ $machinetype == 'x86' ] || [ $machinetype == 'i686' ] || [ $machinetype == 'i586' ]
|
||||||
|
Loading…
Reference in New Issue
Block a user