#!/bin/sh # $Id$ . /etc/rc.subr NAME="module" _module_start(){ printf " Loading modules" find /sys -name "modalias" | while read a; do cat $a | grep "pcspkr" 2>&1 >/dev/null if [ ! "$?" = "0" ]; then modprobe `cat $a` 2>/dev/null if [ ! "$?" = "0" ]; then echo $a >> /tmp/failed.hw fi fi done } _module_stop(){ : } . /etc/rc.proc