#!/bin/sh # rc.modules 12.1 Wed Mar 5 23:51:09 CST 2008 pp (rb), pjv RELEASE=$(uname -r) ### Update module dependencies ### # If /usr is mounted and we have 'find', we can try to take a shortcut: if [ -x /usr/bin/find -a -e /lib/modules/$RELEASE/modules.dep \ -a /lib/modules/$RELEASE/modules.dep -nt /etc/modules.conf ]; then NEWMODS="$(/usr/bin/find /lib/modules/$RELEASE -mindepth 2 -type f -newer /lib/modules/$RELEASE/modules.dep)" # Only rebuild dependencies if new module(s) are found: if [ ! "" = "$NEWMODS" ]; then echo "Updating module dependencies for Linux $RELEASE:" /sbin/depmod -a else echo "Module dependencies up to date (no new kernel modules found)." fi else # we don't have find, or there is no existing modules.dep, or it is out of date. echo "Updating module dependencies for Linux $RELEASE:" /sbin/depmod -A fi /sbin/modprobe -q parport_pc 2> /dev/null /sbin/modprobe -q lp 2> /dev/null if /bin/grep -q quota /etc/fstab ; then # /sbin/modprobe quota_v1 /sbin/modprobe quota_v2 fi /sbin/modprobe agpgart 2> /dev/null if [ -x /etc/rc.d/rc.netdevice ]; then . /etc/rc.d/rc.netdevice fi /sbin/modprobe sdhci /sbin/modprobe mmc-block /sbin/modprobe nvram /sbin/modprobe ac /sbin/modprobe battery /sbin/modprobe button /sbin/modprobe acpi-cpufreq /sbin/modprobe cpufreq-ondemand /sbin/modprobe thinkpad-acpi /sbin/modprobe usbserial vendor=0x1199 product=0x6813 /sbin/modprobe hdaps /sbin/modprobe tp-smapi # We are done with these variables now: unset NEWMODS RELEASE