Move all to deprecated folder.
This commit is contained in:
21
deprecated/firmware/board/raspberrypi/ovl/etc/init.d/S10modules-init
Executable file
21
deprecated/firmware/board/raspberrypi/ovl/etc/init.d/S10modules-init
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/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; then
|
||||
echo " $module loaded"
|
||||
else
|
||||
echo " $module failed"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user