summaryrefslogtreecommitdiff
path: root/package/rdate/rdate.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/rdate/rdate.init')
-rw-r--r--package/rdate/rdate.init14
1 files changed, 6 insertions, 8 deletions
diff --git a/package/rdate/rdate.init b/package/rdate/rdate.init
index 88bf464b9..988028f59 100644
--- a/package/rdate/rdate.init
+++ b/package/rdate/rdate.init
@@ -1,15 +1,13 @@
-#!/bin/mksh
-#FWINIT 54
-# It’s important that this is lower than openntpd’s FWinit number
+#!/bin/sh
+#PKG rdate
+#INIT 54
+
. /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
+ rdate $rdate_flags
;;
autostop|stop)
;;