Magellan Linux

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

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

revision 2790 by niro, Mon Jan 13 09:27:41 2014 UTC revision 2791 by niro, Fri Jun 10 10:21:38 2016 UTC
# Line 141  remove_duplicates() Line 141  remove_duplicates()
141  get_x11_driver_modules()  get_x11_driver_modules()
142  {  {
143   local modules   local modules
144     local temp
145     local i
146   modules="$(hwinfo --gfxcard | grep 'XFree86 v4 Server Module:' | sed 's/.*Module:\ \(.*\)/\1/')"   modules="$(hwinfo --gfxcard | grep 'XFree86 v4 Server Module:' | sed 's/.*Module:\ \(.*\)/\1/')"
147    
148     # catch drivers without any x11 driver defined
149     if [[ -z ${modules} ]]
150     then
151     temp="$(hwinfo --gfxcard | grep '[[:space:]]Driver:' | sed 's/.*Driver:\ \(.*\)/\1/')"
152     for i in ${temp}
153     do
154     case ${i} in
155     i915|i965) modules+=" intel" ;;
156     nouveau) modules+=" noveau" ;;
157     radeon) modules+=" radeon" ;;
158     esac
159     done
160     fi
161    
162   # remove duplicates from list and show it   # remove duplicates from list and show it
163   remove_duplicates "${modules}"   remove_duplicates "${modules}"
164  }  }

Legend:
Removed from v.2790  
changed lines
  Added in v.2791