summaryrefslogtreecommitdiff
path: root/scripts/init-premount
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 /scripts/init-premount
parentf2688cc18d0e0420ad4ad069ed6bb32b2869badb (diff)
downloadinitramfs-tools-5ac8871bdc5093eb2b570937dcc37167b904cb8e.tar.gz
initramfs-tools-5ac8871bdc5093eb2b570937dcc37167b904cb8e.zip
sync 0.40ubuntu16
Diffstat (limited to 'scripts/init-premount')
-rwxr-xr-xscripts/init-premount/thermal16
1 files changed, 10 insertions, 6 deletions
diff --git a/scripts/init-premount/thermal b/scripts/init-premount/thermal
index e0d79c3..a41f6f3 100755
--- a/scripts/init-premount/thermal
+++ b/scripts/init-premount/thermal
@@ -15,9 +15,13 @@ prereqs)
;;
esac
-# For ACPI systems
-modprobe -q fan
-modprobe -q thermal
-
-# For ppc64 systems
-modprobe -q therm_pm72
+case "$DPKG_ARCH" in
+# load the right modules
+powerpc|ppc64)
+ modprobe -q therm_pm72
+ ;;
+i386|amd64|ia64)
+ modprobe -q fan
+ modprobe -q thermal
+ ;;
+esac