Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/daemon/include/hwdetection.global.class

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1334 by niro, Sun Feb 6 23:47:09 2011 UTC revision 1335 by niro, Thu Feb 17 20:18:09 2011 UTC
# Line 71  get_hwinfo_smp() Line 71  get_hwinfo_smp()
71   echo "${smp}"   echo "${smp}"
72  }  }
73    
74    get_hwinfo_monitor()
75    {
76     local all
77     local hsync
78     local vsync
79     local resolution
80    
81     all="$(hwinfo --monitor)"
82     hsync=$(echo "${all}" | grep 'Hor.*Sync' | sed 's:.*\:\ \(.*\)\ kHz:\1:')
83     vsync=$(echo "${all}" | grep 'Vert.*Sync' | sed 's:.*\:\ \(.*\)\ Hz:\1:')
84     resolution=$(echo "${all}" | grep 'Max.*Resolution' | sed 's:.*\:\ \(.*\):\1:')
85    
86     #echo "hsync=\"${hsync}\""
87     #echo "vsync=\"${vsync}\""
88     #echo "resolution=\"${resolution}\""
89     echo "${hsync};${vsync};${resolution}"
90    }
91    
92  # get_driver_modules $hw_item  # get_driver_modules $hw_item
93  get_driver_modules()  get_driver_modules()
# Line 266  create_initrd() Line 283  create_initrd()
283   modules+=" $(grep ide_disk /proc/modules | cut -d' ' -f4 | sed '/-/d;s:,:\ :g')"   modules+=" $(grep ide_disk /proc/modules | cut -d' ' -f4 | sed '/-/d;s:,:\ :g')"
284   fi   fi
285    
286     # check for usb-storage and add usb host drivers
287     if [[ ! -z $(echo ${modules} | grep usb[_-]storage) ]]
288     then
289     # add usb1, usb1.1, usb2 and ubs3 hosts
290     modules+=" uhci-hcd ohci-hcd ehci-hcd xhci-hcd"
291     fi
292    
293   # add some generic modules   # add some generic modules
294   modules+=" sg_mod sg loop sr_mod sd_mod ide-cd ide-cd_mod ide-disk"   modules+=" sg_mod sg loop sr_mod sd_mod ide-cd ide-cd_mod ide-disk"
295    

Legend:
Removed from v.1334  
changed lines
  Added in v.1335