mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
48af3464ad
Correct the startup script to unload rtc.ko module properly.
21 lines
271 B
Bash
21 lines
271 B
Bash
#!/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
|