summaryrefslogtreecommitdiffstats
path: root/system-boot/backend/initramfs-tools/kms.hook
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--system-boot/backend/initramfs-tools/kms.hook25
1 files changed, 25 insertions, 0 deletions
diff --git a/system-boot/backend/initramfs-tools/kms.hook b/system-boot/backend/initramfs-tools/kms.hook
new file mode 100644
index 0000000..7302c12
--- /dev/null
+++ b/system-boot/backend/initramfs-tools/kms.hook
@@ -0,0 +1,25 @@
+#!/bin/sh
+# hook for adding kms modules
+
+set -e
+
+# initramfs-tools header
+
+PREREQ=""
+prereqs()
+{
+ echo "${PREREQ}"
+}
+
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+. /usr/share/initramfs-tools/hook-functions
+
+for module in i915 radeon nouveau ; do
+ manual_add_modules $module
+done