123456789101112131415161718192021 |
- #!/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 $?
|