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

22 lines
347 B
Plaintext
Raw Normal View History

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