blob: a89d8e4141a46b6a1a9d297cc24937db49c619ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
[ -f /proc/modules ] || exit 0
[ -e /sbin/depmod ] || exit 0
[ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
depmod -Ae
[ "$VERBOSE" != no ] && echo -n "Loading modules: "
(cat /etc/modules; echo; ) |
while read module args
do
case "$module" in
\#*|"") continue ;;
esac
[ "$VERBOSE" != no ] && echo -n "$module "
modprobe $module $args
done
[ "$VERBOSE" != no ] && echo
|