diff options
Diffstat (limited to 'openwrt/package/openntpd/files')
-rwxr-xr-x | openwrt/package/openntpd/files/S49ntpd | 3 | ||||
-rw-r--r-- | openwrt/package/openntpd/files/ntpd.conf | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/openwrt/package/openntpd/files/S49ntpd b/openwrt/package/openntpd/files/S49ntpd new file mode 100755 index 000000000..e52874878 --- /dev/null +++ b/openwrt/package/openntpd/files/S49ntpd @@ -0,0 +1,3 @@ +#!/bin/sh +mkdir -p `grep "^ntp:" /etc/passwd | cut -d: -f6` +/usr/sbin/ntpd -s diff --git a/openwrt/package/openntpd/files/ntpd.conf b/openwrt/package/openntpd/files/ntpd.conf new file mode 100644 index 000000000..6993b8eba --- /dev/null +++ b/openwrt/package/openntpd/files/ntpd.conf @@ -0,0 +1,3 @@ +# use a random selection of 8 public stratum 2 servers +# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers +servers pool.ntp.org |