summaryrefslogtreecommitdiff
path: root/hooks/kernelextras
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/kernelextras')
-rwxr-xr-xhooks/kernelextras44
1 files changed, 44 insertions, 0 deletions
diff --git a/hooks/kernelextras b/hooks/kernelextras
new file mode 100755
index 0000000..714e9a9
--- /dev/null
+++ b/hooks/kernelextras
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+# Hooks for loading extra kernel bits into the initramfs
+
+. /usr/share/initramfs-tools/hook-functions
+
+fbcon=n
+
+for x in ${MODULESDIR}/initrd/*; do
+ x=${x##*/}
+ x=${x%.*}
+ case ${x} in
+ '*')
+ break
+ ;;
+ *fb)
+ fbcon=y
+ ;;
+ esac
+
+ force_load ${x}
+done
+
+# And add vga16fb for usplash to use as well
+manual_add_modules vga16fb
+
+if [ ${fbcon} = "y" ]; then
+ force_load fbcon
+fi