summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/thermal17
1 files changed, 10 insertions, 7 deletions
diff --git a/hooks/thermal b/hooks/thermal
index 4426de3..c27c957 100755
--- a/hooks/thermal
+++ b/hooks/thermal
@@ -19,10 +19,13 @@ esac
. /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
+case "$DPKG_ARCH" in
+# copy the right modules
+powerpc|ppc64)
+ manual_add_modules therm_pm72
+ ;;
+i386|amd64|ia64)
+ manual_add_modules fan
+ manual_add_modules thermal
+ ;;
+esac