--- alx-src/branches/alxconf-060/bin/alx-hwdetection.sh 2011/09/28 14:52:41 3259 +++ alx-src/branches/alxconf-060/bin/alx-hwdetection.sh 2012/03/28 09:56:36 3375 @@ -165,6 +165,26 @@ echo "${systemtype}" } +intel_framebuffer_quirk_required() +{ + local retval=0 + local fbdev + + if [[ -e /proc/fb ]] + then + if [[ ! -z $(grep 'inteldrmfb' /proc/fb) ]] + then + fbdev=$(grep 'inteldrmfb' /proc/fb | sed 's:\([0-9]\).*:\1:') + if [[ ${fbdev} != 0 ]] + then + retval="${fbdev}" + fi + fi + fi + + echo "${retval}" +} + # debug #echo "LAN: $(get_netcard_driver_modules eth0)" #echo "WLAN: $(get_wlan_driver_modules wlan0)" @@ -177,4 +197,5 @@ vga) get_x11_driver_modules ;; console) get_drm_driver_modules ;; system) get_system_type ;; + intel-fb-quirk) intel_framebuffer_quirk_required ;; esac