forked from public/airgap
1
0
Fork 0
airgap/config/buildroot/rootfs_overlay/etc/init.d/S02modules

23 lines
387 B
Bash
Executable File

#!/bin/sh
[ -e /proc/ksyms -o -e /proc/modules ] || exit 0
case "${1}" in
start)
[ -f /etc/modules ] || exit 0
while read module args; do
printf 'Loading module %s: ' "${module}"
modprobe ${module} ${args} >/dev/null
if [ $? -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
done < /etc/sysconfig/modules
;;
*)
echo "Usage: ${0} {start}"
exit 1
;;
esac