blob: 37eae63d2f9f614ed64fe43c25f5fd4e32abbc9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#!/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)
# Only G5 Mac machines need to load
# windfarm_core or one of the windfarm_pm* modules.
[ -r /proc/cpuinfo ] || exit 0
MODEL="$(grep model /proc/cpuinfo)"
MODEL="${MODEL##*: }"
case "$MODEL" in
RackMac3,1)
force_load windfarm_rm31
;;
PowerMac7,2|PowerMac7,3)
force_load windfarm_pm72
;;
PowerMac8,1|PowerMac8,2)
force_load windfarm_pm81
;;
PowerMac9,1)
force_load windfarm_pm91
;;
PowerMac11,2)
force_load windfarm_pm112
;;
PowerMac12,1)
force_load windfarm_pm121
;;
*)
# No other machine needs windfarm_* modules on initrd.
exit 0
;;
esac
manual_add_modules windfarm_core windfarm_cpufreq_clamp \
windfarm_lm75_sensor windfarm_max6690_sensor windfarm_pid \
windfarm_smu_controls windfarm_smu_sat windfarm_smu_sensors
;;
i386|amd64|ia64)
manual_add_modules fan thermal
;;
esac
|