summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2009-02-13 17:18:59 +0100
committermaximilian attems <maks@debian.org>2009-02-13 17:20:58 +0100
commitd144b88e29e390c43d7ce15f8cb0548c0ae576e1 (patch)
tree243eb0927ea985dd8b3b1e359a9839b1cc39c4c5 /scripts
parent93654c9230d3817fa57069012a0b06ccb1df09e4 (diff)
downloadinitramfs-tools-d144b88e29e390c43d7ce15f8cb0548c0ae576e1.tar.gz
initramfs-tools-d144b88e29e390c43d7ce15f8cb0548c0ae576e1.zip
thermal boot script: Don't load thermal+fan on acpi=off
(closes: #514997) Reported-by: Michael Prokop <mika@grml.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/init-premount/thermal7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/init-premount/thermal b/scripts/init-premount/thermal
index aa146ec..0215edb 100755
--- a/scripts/init-premount/thermal
+++ b/scripts/init-premount/thermal
@@ -31,6 +31,13 @@ powerpc|ppc64)
modprobe windfarm_smu_sensors
;;
i386|amd64|ia64)
+ for x in $(cat /proc/cmdline); do
+ case ${x} in
+ acpi=off)
+ exit 0
+ ;;
+ esac
+ done
modprobe fan
modprobe thermal
;;