[ltp] ibm_acpi and modprobe.conf

Steven King linux-thinkpad@linux-thinkpad.org
Sat, 6 Aug 2005 12:40:14 -0700


FC3 (which I'm running) and I think FC4 as well, have these lines 
in /etc/rc.sysinit:

# Initialiaze ACPI bits
if [ -d /proc/acpi ]; then
   for module in /lib/modules/$unamer/kernel/drivers/acpi/* ; do
      insmod $module >/dev/null 2>&1
   done
fi

as insmod doesnt use modprobe.conf I changed this to

if [ -d /proc/acpi ]; then
   pushd /lib/modules/$unamer/kernel/drivers/acpi > /dev/null 2>&1
   for module in `ls | LC_ALL=C sed 's/\.*.ko//'`; do
      modprobe $module >/dev/null 2>&1
   done
   popd > /dev/null 2>&1
fi

and now I get proper ibm_acpi option passing with an otherwise stock FC3 
distribution kernel (2.6.12-1.1372_FC3).