archboot/hooks/arch_acpi
2007-09-07 17:22:10 +00:00

14 lines
449 B
Text

run_hook ()
{
if [ -d /proc/acpi ]; then
echo "Loading standard ACPI modules"
ACPI_MODULES="ac battery button fan processor thermal"
# add disablemodules= from commandline to blacklist
k="${k} $(echo ${disablemodules} | sed 's|-|_|g' | sed 's|,| |g')"
for n in ${ACPI_MODULES}; do
if ! echo ${k} | /bin/grep "\<$n\>" 2>&1 >/dev/null; then
/sbin/modprobe $n > /dev/null 2>&1
fi
done
fi
}