#! /bin/sh # /etc/init.d/modutils: loads the appropriate modules in `boot'. PATH="/sbin:/bin:/usr/sbin:/usr/bin" [ -f /proc/modules ] || exit 0 [ -e /sbin/depmod ] || exit 0 [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..." depmod -Ae # Loop over every line in /etc/modules. [ "$VERBOSE" != no ] && echo -n "Loading modules: " (cat /etc/modules; echo) | # make sure there is a LF at the end while read module args do case "$module" in \#*|"") continue ;; esac [ "$VERBOSE" != no ] && echo -n "$module " modprobe $module $args done [ "$VERBOSE" != no ] && echo # # Just in case a sysadmin prefers generic symbolic links in # /lib/modules/boot for boot time modules we will load these modules # if [ -n "`modprobe -l -t boot`" ] then modprobe -a -t boot \* 2>/dev/null fi exit 0