Detect KMS capable drm drivers instead of hard coded list.

master
Warren Togami 2009-06-02 16:51:49 -04:00
parent 87ce134e08
commit e9b1426eb7
1 changed files with 6 additions and 1 deletions

View File

@ -4,5 +4,10 @@ inst_hook pre-udev 10 "$moddir"/plymouth-start.sh
inst_hook pre-pivot 90 "$moddir"/plymouth-newroot.sh
inst_hook emergency 50 "$moddir"/plymouth-emergency.sh
inst "$moddir"/cryptroot-ask.sh /sbin/cryptroot-ask
instmods i915 radeon nouveau
# Include KMS capable drm drivers
for modname in `find "/lib/modules/$kernel/kernel/drivers/gpu/drm" -name '*.ko'`; do
if nm -uPA $modname | grep -q drm_crtc_init; then
instmods $modname
fi
done