From 7bf482253faf075f55556b69a3908f1c859d8322 Mon Sep 17 00:00:00 2001 From: wbx Date: Wed, 23 Mar 2005 20:19:42 +0000 Subject: 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 --- openwrt/package/openntpd/ipkg/etc/init.d/S49ntpd | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 openwrt/package/openntpd/ipkg/etc/init.d/S49ntpd (limited to 'openwrt/package/openntpd/ipkg/etc/init.d') 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 -- cgit v1.2.3