diff options
author | Daniel Napora <napcok@gmail.com> | 2013-10-08 19:36:55 +0200 |
---|---|---|
committer | Daniel Napora <napcok@gmail.com> | 2013-10-08 19:36:55 +0200 |
commit | 421bad43af8cdcd8cb8f1ffacf84b3a4b3ebf8d2 (patch) | |
tree | 9e014efad8cb58ff137796f6071de9a3b3431322 /usr/share | |
parent | 16b5eef8c362887d339a409ff48111730ee489b3 (diff) | |
download | mageiawelcome-421bad43af8cdcd8cb8f1ffacf84b3a4b3ebf8d2.tar mageiawelcome-421bad43af8cdcd8cb8f1ffacf84b3a4b3ebf8d2.tar.gz mageiawelcome-421bad43af8cdcd8cb8f1ffacf84b3a4b3ebf8d2.tar.bz2 mageiawelcome-421bad43af8cdcd8cb8f1ffacf84b3a4b3ebf8d2.tar.xz mageiawelcome-421bad43af8cdcd8cb8f1ffacf84b3a4b3ebf8d2.zip |
Showing arch as 32-bit or 64-bit instead of i686 or x86_64
Diffstat (limited to 'usr/share')
-rw-r--r-- | usr/share/mageiawelcome/mageiawelcome.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/share/mageiawelcome/mageiawelcome.py b/usr/share/mageiawelcome/mageiawelcome.py index c81bde8..eefee6c 100644 --- a/usr/share/mageiawelcome/mageiawelcome.py +++ b/usr/share/mageiawelcome/mageiawelcome.py @@ -45,7 +45,10 @@ def main(): #collect sys info release = open("/etc/release", "r").read() kernel = commands.getoutput('uname -r') - arch = commands.getoutput('uname -m') + if os.uname()[4] == 'x86_64': + arch = '64-bit' + else: + arch = '32-bit' home = os.getenv("HOME") username = os.getenv("USER") |