blob: 88bf464b9795f2e6d06d2ad6e8fbd2ab16563a8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/mksh
#FWINIT 54
# It’s important that this is lower than openntpd’s FWinit number
. /etc/rc.conf
case $1 in
autostart|start|restart)
if [[ $(ls -l /usr/sbin/rdate) != *ucb* ]]; then
rm -f /usr/sbin/rdate
ln -s ../ucb/rdate /usr/sbin/rdate
fi
[[ $rdate_flags = NO ]] && exit 0
/usr/ucb/rdate $rdate_flags
;;
autostop|stop)
;;
*)
echo "Usage: $0 {start | stop | restart}"
exit 1
;;
esac
exit $?
|