Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tautils.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tautils.py')
-rw-r--r--TurtleArt/tautils.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/TurtleArt/tautils.py b/TurtleArt/tautils.py
index 9affe1c..616ba81 100644
--- a/TurtleArt/tautils.py
+++ b/TurtleArt/tautils.py
@@ -717,7 +717,13 @@ def get_hardware():
elif version == '4':
return XO4
else:
- return UNKNOWN
+ # Older systems don't have dmi info
+ if os.path.exists('/sys/devices/platform/lis3lv02d/position'):
+ return XO175
+ elif os.path.exists('/etc/olpc-release'):
+ return XO1
+ else:
+ return UNKNOWN
def _get_dmi(node):