summaryrefslogtreecommitdiff
path: root/hooks/thermal
diff options
context:
space:
mode:
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