aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/About.py
diff options
context:
space:
mode:
authoracid-burn <acid-burn@opendreambox.org>2010-10-05 12:57:56 +0200
committeracid-burn <acid-burn@opendreambox.org>2010-10-05 12:57:56 +0200
commitb6da0afe0cd5cf7ba08427fd1b8e2fe9bb270901 (patch)
tree5d6fa8fb417a3ec0c90a6a1f068ef883f630495c /lib/python/Components/About.py
parente2be31452f7c2d90fa7008583f36d6a6583cc83a (diff)
parent996081f3ac0b17e0609fb74b11db49112eeec43e (diff)
downloadenigma2-b6da0afe0cd5cf7ba08427fd1b8e2fe9bb270901.tar.gz
enigma2-b6da0afe0cd5cf7ba08427fd1b8e2fe9bb270901.zip
Merge commit 'origin/bug_558_wlanfixes'
Conflicts: lib/python/Components/Network.py
Diffstat (limited to 'lib/python/Components/About.py')
-rwxr-xr-x[-rw-r--r--]lib/python/Components/About.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/python/Components/About.py b/lib/python/Components/About.py
index 8e332e33..6b322c9d 100644..100755
--- a/lib/python/Components/About.py
+++ b/lib/python/Components/About.py
@@ -1,5 +1,6 @@
from Tools.Directories import resolveFilename, SCOPE_SYSETC
from enigma import getEnigmaVersionString
+from os import popen
class About:
def __init__(self):
@@ -43,4 +44,14 @@ class About:
def getEnigmaVersionString(self):
return getEnigmaVersionString()
+ def getKernelVersionString(self):
+ try:
+ result = popen("uname -r","r").read().strip("\n").split('-')
+ kernel_version = result[0]
+ return kernel_version
+ except:
+ pass
+
+ return "unknown"
+
about = About()