summaryrefslogtreecommitdiffstats
path: root/openwrt/package/openntpd/ipkg/etc/init.d/S49ntpd
diff options
context:
space:
mode:
authorwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-03-23 20:19:42 +0000
committerwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-03-23 20:19:42 +0000
commit7bf482253faf075f55556b69a3908f1c859d8322 (patch)
tree5e7a96353995aaa1301a9b4548cab2ef6b52043d /openwrt/package/openntpd/ipkg/etc/init.d/S49ntpd
parentb1b9d8388faa032c2ab4f8b2249967ad64cc7617 (diff)
fixup openntpd package. ntpd now starts as user ntp and
CONTROL/postinst can be executed on host and target system. idea from nbd to use IPKG_ROOTDIR git-svn-id: svn://svn.openwrt.org/openwrt/trunk@435 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/openntpd/ipkg/etc/init.d/S49ntpd')
-rwxr-xr-xopenwrt/package/openntpd/ipkg/etc/init.d/S49ntpd3
1 files changed, 3 insertions, 0 deletions
diff --git a/openwrt/package/openntpd/ipkg/etc/init.d/S49ntpd b/openwrt/package/openntpd/ipkg/etc/init.d/S49ntpd
new file mode 100755
index 000000000..e52874878
--- /dev/null
+++ b/openwrt/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