#!/bin/sh

PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

case "$ARCH" in
# load the right modules
powerpc|ppc64)
	/sbin/modprobe i2c-powermac
	/sbin/modprobe therm_pm72
	/sbin/modprobe windfarm_cpufreq_clamp
	/sbin/modprobe windfarm_lm75_sensor
	/sbin/modprobe windfarm_max6690_sensor
	/sbin/modprobe windfarm_pm112
	/sbin/modprobe windfarm_pm81
	/sbin/modprobe windfarm_pm91
	/sbin/modprobe windfarm_smu_controls
	/sbin/modprobe windfarm_smu_sat
	/sbin/modprobe windfarm_smu_sensors
	;;
i?86|athlon|amd64|x86?64|ia64)
	for x in $(cat /proc/cmdline); do
		case ${x} in
		acpi=off)
			exit 0
			;;
		esac
	done
	/sbin/modprobe fan
	/sbin/modprobe thermal
	;;
esac
