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 }