summaryrefslogtreecommitdiffstats
path: root/usr/share
diff options
context:
space:
mode:
authorDaniel Napora <napcok@gmail.com>2013-10-08 19:36:55 +0200
committerDaniel Napora <napcok@gmail.com>2013-10-08 19:36:55 +0200
commit421bad43af8cdcd8cb8f1ffacf84b3a4b3ebf8d2 (patch)
tree9e014efad8cb58ff137796f6071de9a3b3431322 /usr/share
parent16b5eef8c362887d339a409ff48111730ee489b3 (diff)
downloadmageiawelcome-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.py5
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")