summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2010-04-05 03:43:46 +0200
committermaximilian attems <maks@debian.org>2010-04-05 03:44:58 +0200
commit26db93c6b88a5cc9147ba4dfd5f29a898fecc031 (patch)
tree1decf314771ed7f35bb34f3c97a199d311cddb75 /hooks
parentfe7e630857d2fd1c9b7af48f33d46e626ac6509e (diff)
downloadinitramfs-tools-26db93c6b88a5cc9147ba4dfd5f29a898fecc031.tar.gz
initramfs-tools-26db93c6b88a5cc9147ba4dfd5f29a898fecc031.zip
Keep acpi modules in initramfs so that udev can load them early
partialy revert "nuke thermal hooks", this is needed for broken hardware. no point in us loading them, as udev will do it anyway and should soon run earlier. This reverts commit c5e39cd1cb1dc9f6a18de07e137ef47ecc8f8cc6.
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/thermal46
1 files changed, 46 insertions, 0 deletions
diff --git a/hooks/thermal b/hooks/thermal
new file mode 100755
index 0000000..aa10ebf
--- /dev/null
+++ b/hooks/thermal
@@ -0,0 +1,46 @@
+#!/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
+
+case "$DPKG_ARCH" in
+# copy the right modules
+powerpc|ppc64)
+ if [ -e /sys/bus/ps3_system_bus/ ]; then
+ exit 0
+ fi
+ manual_add_modules therm_pm72
+ manual_add_modules windfarm_core
+ manual_add_modules windfarm_cpufreq_clamp
+ manual_add_modules windfarm_lm75_sensor
+ manual_add_modules windfarm_max6690_sensor
+ manual_add_modules windfarm_pid
+ manual_add_modules windfarm_pm112
+ manual_add_modules windfarm_pm81
+ manual_add_modules windfarm_pm91
+ manual_add_modules windfarm_smu_controls
+ manual_add_modules windfarm_smu_sat
+ manual_add_modules windfarm_smu_sensors
+ manual_add_modules i2c-powermac
+ ;;
+i386|amd64|ia64)
+ manual_add_modules fan
+ manual_add_modules thermal
+ ;;
+esac