summaryrefslogtreecommitdiff
path: root/openwrt/package/openntpd/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-03-23 09:41:29 +0000
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-03-23 09:41:29 +0000
commit00c4ce5585597296fb1e9418c869a505e980605f (patch)
treec722980b790e6b0287601c1e6df8f2e83f3dc874 /openwrt/package/openntpd/files
parent9e88c96a2435d2c259aef1446823497c3cb7173e (diff)
downloadmtk-20170518-00c4ce5585597296fb1e9418c869a505e980605f.zip
mtk-20170518-00c4ce5585597296fb1e9418c869a505e980605f.tar.gz
mtk-20170518-00c4ce5585597296fb1e9418c869a505e980605f.tar.bz2
add openntpd. sort list of packages alphabetically in Makefile.
SVN-Revision: 422
Diffstat (limited to 'openwrt/package/openntpd/files')
-rwxr-xr-xopenwrt/package/openntpd/files/S49ntpd3
-rw-r--r--openwrt/package/openntpd/files/ntpd.conf3
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 0000000..e528748
--- /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 0000000..6993b8e
--- /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