aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/About.py
diff options
context:
space:
mode:
authoracid-burn <acid-burn@opendreambox.org>2010-07-24 23:14:58 +0200
committeracid-burn <acid-burn@opendreambox.org>2010-07-24 23:14:58 +0200
commit996081f3ac0b17e0609fb74b11db49112eeec43e (patch)
treee2f0c504897ad678887736c245121ae0e2e5d37a /lib/python/Components/About.py
parent4279d927998c42abec8cb234162e34f3e42a5021 (diff)
downloadenigma2-996081f3ac0b17e0609fb74b11db49112eeec43e.tar.gz
enigma2-996081f3ac0b17e0609fb74b11db49112eeec43e.zip
Enigma2-Network: update Wlan plugin to support new python-wifi.
some fixes and cleanups. refs #558
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()