summaryrefslogtreecommitdiff
path: root/hooks/thermal
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2005-12-05 17:19:00 +0100
committermaximilian attems <maks@debian.org>2005-12-05 17:19:00 +0100
commitefc90bbb5f64353714175bb4b2225422f3de86b2 (patch)
treebf92d7ea84f30edd5c968853deae92532d987d07 /hooks/thermal
parentbfd7efb29d7e706d6378ad2b91d2be9d21f8b8ee (diff)
downloadinitramfs-tools-efc90bbb5f64353714175bb4b2225422f3de86b2.tar.gz
initramfs-tools-efc90bbb5f64353714175bb4b2225422f3de86b2.zip
resync with latest ubuntu, split udev done by hand.
Diffstat (limited to 'hooks/thermal')
-rwxr-xr-xhooks/thermal28
1 files changed, 28 insertions, 0 deletions
diff --git a/hooks/thermal b/hooks/thermal
new file mode 100755
index 0000000..4426de3
--- /dev/null
+++ b/hooks/thermal
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+# Hooks for loading thermal bits into the initramfs
+
+. /usr/share/initramfs-tools/hook-functions
+
+# ACPI Systems
+for x in fan thermal; do
+ manual_add_modules ${x}
+done
+
+# PPC64 Systems
+manual_add_modules therm_pm72