summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2009-07-29 15:05:48 +0200
committermaximilian attems <maks@debian.org>2009-07-29 15:06:56 +0200
commitc5e39cd1cb1dc9f6a18de07e137ef47ecc8f8cc6 (patch)
tree693751d041dadef70bcf85c8c37e23a45eb37b8c
parentddf09adbf2f2710e62b4a1eedfad213ce6e908e7 (diff)
downloadinitramfs-tools-c5e39cd1cb1dc9f6a18de07e137ef47ecc8f8cc6.tar.gz
initramfs-tools-c5e39cd1cb1dc9f6a18de07e137ef47ecc8f8cc6.zip
nuke thermal hooks
thrive for a smaller initramfs, were loading of the modules is so fast that acpi should be loaeded by udev after init(8) call. Signed-off-by: maximilian attems <maks@debian.org>
-rwxr-xr-xhooks/thermal46
-rwxr-xr-xscripts/init-premount/thermal44
2 files changed, 0 insertions, 90 deletions
diff --git a/hooks/thermal b/hooks/thermal
deleted file mode 100755
index aa10ebf..0000000
--- a/hooks/thermal
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-
-PREREQ=""
-
-prereqs()
-{
- echo "$PREREQ"
-}
-
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
-esac
-
-# Hooks for loading thermal bits into the initramfs
-
-. /usr/share/initramfs-tools/hook-functions
-
-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
- manual_add_modules windfarm_lm75_sensor
- manual_add_modules windfarm_max6690_sensor
- manual_add_modules windfarm_pid
- manual_add_modules windfarm_pm112
- manual_add_modules windfarm_pm81
- manual_add_modules windfarm_pm91
- manual_add_modules windfarm_smu_controls
- manual_add_modules windfarm_smu_sat
- manual_add_modules windfarm_smu_sensors
- manual_add_modules i2c-powermac
- ;;
-i386|amd64|ia64)
- manual_add_modules fan
- manual_add_modules thermal
- ;;
-esac
diff --git a/scripts/init-premount/thermal b/scripts/init-premount/thermal
deleted file mode 100755
index 0215edb..0000000
--- a/scripts/init-premount/thermal
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-PREREQ=""
-
-prereqs()
-{
- echo "$PREREQ"
-}
-
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
-esac
-
-case "$DPKG_ARCH" in
-# load the right modules
-powerpc|ppc64)
- modprobe i2c-powermac
- modprobe therm_pm72
- modprobe windfarm_cpufreq_clamp
- modprobe windfarm_lm75_sensor
- modprobe windfarm_max6690_sensor
- modprobe windfarm_pm112
- modprobe windfarm_pm81
- modprobe windfarm_pm91
- modprobe windfarm_smu_controls
- modprobe windfarm_smu_sat
- 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
- ;;
-esac