Magellan Linux

Diff of /alx-src/branches/alxconf-060/bin/alx-hwdetection.sh

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

revision 3201 by niro, Wed Sep 14 13:02:37 2011 UTC revision 4912 by niro, Wed May 29 09:31:01 2013 UTC
# Line 93  get_x11_driver_modules() Line 93  get_x11_driver_modules()
93   # use vesa if nothing was found   # use vesa if nothing was found
94   [[ -z ${modules} ]] && modules="vesa"   [[ -z ${modules} ]] && modules="vesa"
95    
96     # use openchrome module on dell optiplex fx130
97     if [[ ! -z $(hwinfo --bios | grep -i -A1 dell | grep -i fx130) ]]
98     then
99     modules="${modules//unichrome/openchrome}"
100     fi
101    
102   # remove duplicates from list and show it   # remove duplicates from list and show it
103   remove_duplicates "${modules}"   remove_duplicates "${modules}"
104  }  }
# Line 152  get_system_type() Line 158  get_system_type()
158   elif [[ ! -z $(echo "${hwinfo}" | grep -i CLE266) ]]   elif [[ ! -z $(echo "${hwinfo}" | grep -i CLE266) ]]
159   then   then
160   systemtype="rangee"   systemtype="rangee"
161     elif [[ ! -z $(echo "${hwinfo}" | grep -i i810) ]]
162     then
163     systemtype="maxdata"
164     elif [[ ! -z $(echo "${hwinfo}" | grep -i i815) ]]
165     then
166     systemtype="maxdata"
167   else   else
168   systemtype="standard"   systemtype="standard"
169   fi   fi
# Line 159  get_system_type() Line 171  get_system_type()
171   echo "${systemtype}"   echo "${systemtype}"
172  }  }
173    
174    intel_framebuffer_quirk_required()
175    {
176     local retval=0
177     local fbdev
178    
179     if [[ -e /proc/fb ]]
180     then
181     if [[ ! -z $(grep 'inteldrmfb' /proc/fb) ]]
182     then
183     fbdev=$(grep 'inteldrmfb' /proc/fb | sed 's:\([0-9]\).*:\1:')
184     if [[ ${fbdev} != 0 ]]
185     then
186     retval="${fbdev}"
187     fi
188     fi
189     fi
190    
191     echo "${retval}"
192    }
193    
194  # debug  # debug
195  #echo "LAN:    $(get_netcard_driver_modules eth0)"  #echo "LAN:    $(get_netcard_driver_modules eth0)"
196  #echo "WLAN:   $(get_wlan_driver_modules wlan0)"  #echo "WLAN:   $(get_wlan_driver_modules wlan0)"
# Line 171  case $1 in Line 203  case $1 in
203   vga) get_x11_driver_modules ;;   vga) get_x11_driver_modules ;;
204   console) get_drm_driver_modules ;;   console) get_drm_driver_modules ;;
205   system) get_system_type ;;   system) get_system_type ;;
206     intel-fb-quirk) intel_framebuffer_quirk_required ;;
207  esac  esac

Legend:
Removed from v.3201  
changed lines
  Added in v.4912