kumquat-buildroot/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S10modules-init

22 lines
372 B
Plaintext
Raw Normal View History

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