summaryrefslogtreecommitdiff
path: root/package/openntpd/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/openntpd/files')
-rw-r--r--package/openntpd/files/openntpd.init (renamed from package/openntpd/files/ntpd.init)8
-rw-r--r--package/openntpd/files/openntpd.postinst4
2 files changed, 6 insertions, 6 deletions
diff --git a/package/openntpd/files/ntpd.init b/package/openntpd/files/openntpd.init
index 02239f318..f21bd730a 100644
--- a/package/openntpd/files/ntpd.init
+++ b/package/openntpd/files/openntpd.init
@@ -6,13 +6,13 @@
case $1 in
autostop) ;;
autostart)
- test x"${ntpd:-NO}" = x"NO" && exit 0
- test x"$ntpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
+ test x"${openntpd:-NO}" = x"NO" && exit 0
+ test x"$openntpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
- mkdir -p /tmp/.ntp
- /usr/sbin/ntpd $ntpd_flags
+ mkdir -p /tmp/.ntp &> /dev/null
+ /usr/sbin/ntpd $openntpd_flags
;;
stop)
kill $(pgrep -f /usr/sbin/ntpd)
diff --git a/package/openntpd/files/openntpd.postinst b/package/openntpd/files/openntpd.postinst
index 1e4f34da1..1688c112c 100644
--- a/package/openntpd/files/openntpd.postinst
+++ b/package/openntpd/files/openntpd.postinst
@@ -4,5 +4,5 @@ gid=$(get_next_gid)
add_group ntp $gid
add_user ntp $(get_next_uid) $gid /tmp/.ntp
add_service ntp 123/udp
-add_rcconf ntpd_flags "-s"
-add_rcconf ntpd NO
+add_rcconf openntpd_flags "-s"
+add_rcconf openntpd NO