summaryrefslogtreecommitdiffstats
path: root/emulators/rtc/files/rtc.sh
blob: 8751f46c710dba68a59402421ee9a92e0349f021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

kmoddir=@@PREFIX@@/modules
kmod=rtc.ko

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