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() |
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 |
|
|