Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
54514434
Commit
54514434
authored
Feb 16, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
distr_info
bin/distr_info
+9
-3
No files found.
bin/distr_info
View file @
54514434
...
...
@@ -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"
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment