2007-07-29 09:15:35 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
MODPROBE=/sbin/modprobe
|
|
|
|
|
2007-08-17 15:02:52 +02:00
|
|
|
echo -n "Probing modules: "
|
2007-07-29 09:15:35 +02:00
|
|
|
if [ ! -x "${MODPROBE}" -o ! -f "/etc/modules" ]; then
|
2007-08-17 15:02:52 +02:00
|
|
|
echo "missing"
|
2007-07-29 09:15:35 +02:00
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
|
|
|
grep '^[^#]' "/etc/modules" | \
|
|
|
|
while read module args; do
|
|
|
|
[ "$module" ] || continue
|
2007-08-17 15:02:52 +02:00
|
|
|
if ${MODPROBE} $module $args; then
|
2007-07-29 09:15:35 +02:00
|
|
|
echo " $module loaded"
|
|
|
|
else
|
|
|
|
echo " $module failed"
|
|
|
|
fi
|
|
|
|
done
|