summaryrefslogtreecommitdiff
path: root/package/openntpd/ipkg/etc/init.d/S49ntpd
diff options
context:
space:
mode:
Diffstat (limited to 'package/openntpd/ipkg/etc/init.d/S49ntpd')
-rwxr-xr-xpackage/openntpd/ipkg/etc/init.d/S49ntpd3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/openntpd/ipkg/etc/init.d/S49ntpd b/package/openntpd/ipkg/etc/init.d/S49ntpd
new file mode 100755
index 0000000000..e528748780
--- /dev/null
+++ b/package/openntpd/ipkg/etc/init.d/S49ntpd
@@ -0,0 +1,3 @@
+#!/bin/sh
+mkdir -p `grep "^ntp:" /etc/passwd | cut -d: -f6`
+/usr/sbin/ntpd -s