br2/board/nextthing/chippro/overlay/etc/init.d/S10modules
Guilhem Baccialone e5f3a21383
Add nextthing boards
add chip, chippro and pocketchip
2024-10-15 23:00:08 +02:00

21 lines
361 B
Bash

#!/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