#!/bin/sh

kmoddir=/usr/local/modules
kmod=rtc.ko

case "$1" in
start)
	if [ -x $kmoddir/$kmod ]; then
	    echo -n ' rtc'
	    /sbin/kldload $kmoddir/$kmod
	fi
	;;
stop)
	/sbin/kldunload $kmod && echo -n ' rtc'
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	exit 64
	;;
esac
