5 kx #!/bin/bash
5 kx
5 kx # /etc/rc.d/rc.modules
5 kx
5 kx # Determine the version of the running kernel:
5 kx RELEASE=$(uname -r)
5 kx
5 kx # Update kernel module dependencies:
5 kx if [ -e "/lib/modules/$RELEASE/modules.dep" ]; then
5 kx echo "Updating module dependency list for $RELEASE: /sbin/depmod --quick"
5 kx /sbin/depmod --quick
5 kx else
5 kx echo "Creating module dependency list for $RELEASE: /sbin/depmod --all"
5 kx /sbin/depmod --all
5 kx fi
5 kx
5 kx # Run any rc.modules-$(uname -r) file that exists (this is used
5 kx # if you have specific modules which should only be loaded for
5 kx # specific kernel versions):
5 kx if [ -x "/etc/rc.d/rc.modules-$RELEASE" ]; then
5 kx /etc/rc.d/rc.modules-$RELEASE
5 kx fi
5 kx
5 kx # Run a local (sysadmin-version) of rc.modules if it exists:
5 kx if [ -x "/etc/rc.d/rc.modules.local" ]; then
5 kx /etc/rc.d/rc.modules.local
5 kx fi
385 kx