summaryrefslogtreecommitdiff
path: root/hooks/thermal
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-01-24 12:27:42 +0100
committermaximilian attems <maks@debian.org>2006-01-24 12:27:42 +0100
commit5ac8871bdc5093eb2b570937dcc37167b904cb8e (patch)
tree283b2d7b6e8497f960982a2fe0225251900d9773 /hooks/thermal
parentf2688cc18d0e0420ad4ad069ed6bb32b2869badb (diff)
downloadinitramfs-tools-5ac8871bdc5093eb2b570937dcc37167b904cb8e.tar.gz
initramfs-tools-5ac8871bdc5093eb2b570937dcc37167b904cb8e.zip
sync 0.40ubuntu16
Diffstat (limited to 'hooks/thermal')
-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