diff options
author | Waldemar Brodkorb <wbx@openwrt.org> | 2005-03-23 20:19:42 +0000 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openwrt.org> | 2005-03-23 20:19:42 +0000 |
commit | 0e0a6891a715bb25307c8b440f546793da0746fc (patch) | |
tree | a04ca2f800e790691980023d5ae310e503c502cc /package/openntpd/ipkg/etc/init.d/S49ntpd | |
parent | 605c98529eb838b8a6babc3cd182283d3b4868ab (diff) | |
download | master-187ad058-0e0a6891a715bb25307c8b440f546793da0746fc.tar.gz master-187ad058-0e0a6891a715bb25307c8b440f546793da0746fc.tar.bz2 master-187ad058-0e0a6891a715bb25307c8b440f546793da0746fc.zip |
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/openwrt@435 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/openntpd/ipkg/etc/init.d/S49ntpd')
-rwxr-xr-x | package/openntpd/ipkg/etc/init.d/S49ntpd | 3 |
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 |