summaryrefslogtreecommitdiff
path: root/hooks/kernelextras
diff options
context:
space:
mode:
authorJeff Bailey <jbailey@ubuntu.com>2005-08-17 00:01:51 -0400
committerJeff Bailey <jbailey@ubuntu.com>2005-08-17 00:01:51 -0400
commit9a9de97229d09d9876575775a080a4056fcffcb5 (patch)
treeb8c66a8648a65d6ccb892e7d1154cbd33c822abf /hooks/kernelextras
parentf903a759dea3c85c88bbec151337efd2c64ba3bf (diff)
downloadinitramfs-tools-9a9de97229d09d9876575775a080a4056fcffcb5.tar.gz
initramfs-tools-9a9de97229d09d9876575775a080a4056fcffcb5.zip
initramfs-tools (0.21) breezy; urgency=low
"All that I desire to point out is the general principle that life imitates art far more than art imitates life." - Oscar Wilde * mkinitramfs: Define MODULESDIR and use it. * hook-functions: Use MODULESDIR (add_modules_from_file): Do not add .ko extension to file lists. Call force_load instead of twiddling conf/modules directly. (Ubuntu #13372) (force_load): New function. (copy_exec): Attempt to use non-optimsed libraries if available. (Ubuntu #13470) (auto_add_modules) Include forcedeth (Ubuntu #13448) * hooks/kernelextras: New file. (Ubuntu #13414) * debian/initramfs-tools.postinst: Preserve /etc/mkinitrd/modules if possible on new install. (Ubuntu #13372) -- Jeff Bailey <jbailey@ubuntu.com> Tue, 16 Aug 2005 15:56:00 -0400
Diffstat (limited to 'hooks/kernelextras')
-rw-r--r--hooks/kernelextras39
1 files changed, 39 insertions, 0 deletions
diff --git a/hooks/kernelextras b/hooks/kernelextras
new file mode 100644
index 0000000..d1b8c34
--- /dev/null
+++ b/hooks/kernelextras
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+# Hooks for loading 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
+ *fb)
+ fbcon=y
+ ;;
+ esac
+
+ force_load ${x}
+done
+
+if [ ${fbcon} = "y" ]; then
+ force_load fbcon
+fi
+