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 3374 by niro, Wed Sep 28 14:52:41 2011 UTC revision 3375 by niro, Wed Mar 28 09:56:36 2012 UTC
# Line 165  get_system_type() Line 165  get_system_type()
165   echo "${systemtype}"   echo "${systemtype}"
166  }  }
167    
168    intel_framebuffer_quirk_required()
169    {
170     local retval=0
171     local fbdev
172    
173     if [[ -e /proc/fb ]]
174     then
175     if [[ ! -z $(grep 'inteldrmfb' /proc/fb) ]]
176     then
177     fbdev=$(grep 'inteldrmfb' /proc/fb | sed 's:\([0-9]\).*:\1:')
178     if [[ ${fbdev} != 0 ]]
179     then
180     retval="${fbdev}"
181     fi
182     fi
183     fi
184    
185     echo "${retval}"
186    }
187    
188  # debug  # debug
189  #echo "LAN:    $(get_netcard_driver_modules eth0)"  #echo "LAN:    $(get_netcard_driver_modules eth0)"
190  #echo "WLAN:   $(get_wlan_driver_modules wlan0)"  #echo "WLAN:   $(get_wlan_driver_modules wlan0)"
# Line 177  case $1 in Line 197  case $1 in
197   vga) get_x11_driver_modules ;;   vga) get_x11_driver_modules ;;
198   console) get_drm_driver_modules ;;   console) get_drm_driver_modules ;;
199   system) get_system_type ;;   system) get_system_type ;;
200     intel-fb-quirk) intel_framebuffer_quirk_required ;;
201  esac  esac

Legend:
Removed from v.3374  
changed lines
  Added in v.3375