Commit 54514434 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit 17c7444fc48c103b061770e926edb1b1eca776dc

Author: Vitaly Lipatov <lav@etersoft.ru> Date: Tue Feb 16 00:30:53 2021 +0300 distro_info: use getconf LONG_BIT for get_bit_size
parent 8e2c96a2
......@@ -516,9 +516,15 @@ get_distro_arch()
get_bit_size()
{
local DIST_BIT
# Check if we are running on 64bit platform, seems like a workaround for now...
DIST_BIT="$(get_uname -m)"
case "$DIST_BIT" in
DIST_BIT="$(getconf LONG_BIT 2>/dev/null)"
if [ -n "$DIST_BIT" ] ; then
echo "$DIST_BIT"
exit
fi
# Try detect arch size by arch name
case "$(get_uname -m)" in
'amd64' | 'ia64' | 'x86_64' | 'ppc64')
DIST_BIT="64"
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment