1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/sbin/runscript PATH="/sbin:/bin:/usr/bin:/usr/bin" start() { if [ -f /etc/modules ] ; then sed 's/\#.*//g' < /etc/modules | while read module args do ebegin "Loading $module" modprobe -q $module $args eend $? done fi }