Ticket #10170: 3.x-myth-smolt.patch

File 3.x-myth-smolt.patch, 860 bytes (added by anonymous, 9 years ago)

myth patch for 3.x series , please ignore the previous patch.

  • mythtv/programs/scripts/hardwareprofile/smolt.py

    commit 327f0990031d682373c284f212c41bba46250ea0
    Author: James Meyer <james.meyer@operamail.com>
    Date:   Sun Nov 20 09:29:05 2011 -0600
    
        smolt.py:  add support for reading memory using the 3.x kernel.
    
    diff --git a/mythtv/programs/scripts/hardwareprofile/smolt.py b/mythtv/programs/scripts/hardwareprofile/smolt.py
    index fceb584..6dff184 100644
    a b def read_cpuinfo(): 
    11761176def read_memory():
    11771177    un = os.uname()
    11781178    kernel = un[2]
     1179    #Check for the entire 3.x series
     1180    #This will need to be adjusted if/when the kernel changes the way it reports memory in the 3 series.
     1181    if kernel[:2] == "3.":
     1182        return read_memory_2_6()
    11791183    if kernel[:3] == "2.6":
    11801184        return read_memory_2_6()
    11811185    if kernel[:3] == "2.4":