Add framebuffer resolution variable.

netsetup
Mike Hiretsky 13 years ago
parent 2840e21a14
commit d9cadffa89

@ -1309,3 +1309,12 @@ class fillVars(object, glob_attr):
def get_os_device_partition(self):
"""Get partition table list"""
return self.getAttributeFromHash('os_device_hash','table')
def get_os_install_fb_resolution(self):
"""Get current framebuffer resolution"""
textLines = self._runos("/sbin/fbres 2>&1")
resolution = ""
if textLines:
resolution = "%s-32"%textLines[0]
return resolution or "1024x768-32@60"

@ -212,6 +212,9 @@ class Data:
# xorg resolution
os_install_x11_resolution = {}
# fb resolution
os_install_fb_resolution = {'mode':'w'}
# makeconf makeopts
os_install_makeopts = {'mode':'w'}

Loading…
Cancel
Save