Add variable hr_laptop_model

develop
Mike Hiretsky 14 years ago
parent 282da2001e
commit 5bf89fb289

@ -565,6 +565,14 @@ class fillVars(varsShare):
"unknown"
return ""
def get_hr_laptop_model(self):
"""Laptop name"""
boardName = '/sys/class/dmi/id/board_name'
if self.Get('hr_laptop') and os.access(boardName,os.R_OK):
valBoardName = open(boardName,'r').read().strip()
return valBoardName or "unknown"
return ""
def get_hr_video(self):
"""Videocard vendor"""
lines=self._runos("lspci")

@ -170,9 +170,12 @@ class Data:
# the nearest standard size of image to current screen resolution
os_x11_standart = {'hide':True}
# if computer is noteboot, the this variable containt its vendor
# if computer is notebook, the this variable containt its vendor
hr_laptop = {'hide':True}
# if computer is notebook, model name
hr_laptop_model = {'hide':True}
# video verdor name
hr_video = {'hide':True}

Loading…
Cancel
Save