1 from Tools.Directories import resolveFilename, SCOPE_SYSETC
2 from enigma import getEnigmaVersionString
9 def getVersionString(self):
10 return self.getImageVersionString()
12 def getImageVersionString(self):
14 file = open(resolveFilename(SCOPE_SYSETC, 'image-version'), 'r')
15 lines = file.readlines()
17 splitted = x.split('=')
18 if splitted[0] == "version":
20 #0120 2005 11 29 01 16
21 #0123 4567 89 01 23 45
23 image_type = version[0] # 0 = release, 1 = experimental
30 date = '-'.join((year, month, day))
32 image_type = "Release"
33 version = '.'.join((major, minor, revision))
34 return ' '.join((image_type, version, date))
36 image_type = "Experimental"
37 return ' '.join((image_type, date))
44 def getEnigmaVersionString(self):
45 return getEnigmaVersionString()
47 def getKernelVersionString(self):
49 result = popen("uname -r","r").read().strip("\n").split('-')
50 kernel_version = result[0]