diff options
Diffstat (limited to '')
-rw-r--r-- | source/a/sysvinit-scripts/scripts/rc.modules | 28 | ||||
-rw-r--r-- | source/a/sysvinit-scripts/scripts/rc.modules.local | 17 |
2 files changed, 45 insertions, 0 deletions
diff --git a/source/a/sysvinit-scripts/scripts/rc.modules b/source/a/sysvinit-scripts/scripts/rc.modules new file mode 100644 index 000000000..650c0ef87 --- /dev/null +++ b/source/a/sysvinit-scripts/scripts/rc.modules @@ -0,0 +1,28 @@ +#!/bin/sh + +# /etc/rc.d/rc.modules + +# Determine the version of the running kernel: +RELEASE=$(uname -r) + +# Update kernel module dependencies: +if [ -e "/lib/modules/$RELEASE/modules.dep" ]; then + echo "Updating module dependency list for $RELEASE: /sbin/depmod --quick" + /sbin/depmod --quick +else + echo "Creating module dependency list for $RELEASE: /sbin/depmod --all" + /sbin/depmod --all +fi + +# Run any rc.modules-$(uname -r) file that exists (this is used +# if you have specific modules which should only be loaded for +# specific kernel versions): +if [ -x "/etc/rc.d/rc.modules-$RELEASE" ]; then + /etc/rc.d/rc.modules-$RELEASE +fi + +# Run a local (sysadmin-version) of rc.modules if it exists: +if [ -x "/etc/rc.d/rc.modules.local" ]; then + /etc/rc.d/rc.modules.local +fi + diff --git a/source/a/sysvinit-scripts/scripts/rc.modules.local b/source/a/sysvinit-scripts/scripts/rc.modules.local new file mode 100644 index 000000000..6bd1f3390 --- /dev/null +++ b/source/a/sysvinit-scripts/scripts/rc.modules.local @@ -0,0 +1,17 @@ +#!/bin/sh + +# /etc/rc.d/rc.modules.local + +# The Linux kernel source is the best place to look for documentation +# for the many available kernel modules. This can be found under +# /usr/src/linux-$VERSION/Documentation/. + +# Almost all necessary modules are automatically loaded when needed, +# but there are a few exceptions. Here's a (not all-inclusive) list, +# so uncomment any of the below entries or add others as needed: +# Note that you could also create/edit rc.modules-$version if you +# only wanted specific modules loaded for particular kernels. + +#/sbin/modprobe tun # Universal TUN/TAP device driver +#/sbin/modprobe sg # Generic SCSI support for SATA DVD-RW + |