blob: 827a88df413157955dcde05a16b847586326d09f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
[ -f /proc/modules ] || exit 0
[ -e /sbin/depmod ] || exit 0
[ -f /etc/modules ] || 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
exit 0
|