summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2009-04-01 17:38:38 +0200
committermaximilian attems <maks@debian.org>2009-04-01 17:38:38 +0200
commita55e9b4865c15d3572d93132cfee1d0a53223d29 (patch)
tree321a3baab5baf25b9ad65f54c25ce40a8421226e
parente184c8c2a9ad4520cf0cf4536301c6ae6206e911 (diff)
downloadinitramfs-tools-a55e9b4865c15d3572d93132cfee1d0a53223d29.tar.gz
initramfs-tools-a55e9b4865c15d3572d93132cfee1d0a53223d29.zip
hooks/thermal: Prevent inclusion of windfarm modules on PS3.
Do not load thermal control for macintosh if the device is a PS3. fixes cosmetic issue of boot messages: FATAL: Error inserting therm_pm72 (/lib/modules/2.6.28-4-powerpc64-smp/kernel/drivers/macintosh/therm_pm72.ko): No such device FATAL: Error inserting windfarm_pm112 (/lib/modules/2.6.28-4-powerpc64-smp/kernel/drivers/macintosh/windfarm_pm112.ko): No such device (LP: #346899) this is a port of the 0.92bubuntu26 patch. Reported-by: Arnaud Jeansen <arnaud.jeansen@gmail.com>
-rwxr-xr-xhooks/thermal3
1 files changed, 3 insertions, 0 deletions
diff --git a/hooks/thermal b/hooks/thermal
index ece7243..aa10ebf 100755
--- a/hooks/thermal
+++ b/hooks/thermal
@@ -22,6 +22,9 @@ esac
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