summaryrefslogtreecommitdiffstats
path: root/tools/display_driver_helper
diff options
context:
space:
mode:
Diffstat (limited to 'tools/display_driver_helper')
-rw-r--r--tools/display_driver_helper23
1 files changed, 0 insertions, 23 deletions
diff --git a/tools/display_driver_helper b/tools/display_driver_helper
index 32a50a8..2cf2acf 100644
--- a/tools/display_driver_helper
+++ b/tools/display_driver_helper
@@ -301,23 +301,6 @@ get_initrd_kms_drivers() {
zcat "$initrd" | cpio -t --quiet | sed -nr "s,.*/($kms_drivers)\.ko.*$,\1,p"
}
-# Check that the initrd doesn't contain disabled modules
-check_initrd() {
- local initrd="$1"
- local initrd_drivers="$(get_initrd_kms_drivers "$initrd")"
- for driver in $initrd_drivers; do
- check_driver "$driver" || return 1
- done
- for driver2 in $(get_active_kms_drivers); do
- for driver in $initrd_drivers; do
- [ "$driver" = "$driver2" ] && continue 2
- done
- # An enabled module for present hardware was not in initrd
- return 1
- done
- return 0
-}
-
get_active_kms_drivers() {
local kms_drivers=
for device in $(grep -l 0x03 /sys/bus/pci/devices/0000\:0*/class); do
@@ -387,9 +370,6 @@ Known actions:
As --check-loaded, and consider ambiguous cases (e.g. nvidia where
we can't detect if the loaded driver has the correct version) as
failure.
-
- --check-initrd INITRD
- Check that INITRD doesn't contain disabled KMS drivers.
EOF
}
@@ -453,9 +433,6 @@ case "$1" in
--get-initrd-kms-drivers)
get_initrd_kms_drivers "$2"
;;
---check-initrd)
- check_initrd "$2"
- ;;
--check-loaded)
check_loaded
;;