[packages] openntpd:
[openwrt/svn-archive/archive.git] / net / openntpd / files / ntpd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006-2011 OpenWrt.org
3
4 START=60
5
6 boot() {
7 return 0
8 }
9
10 start() {
11 mkdir -p `awk -F: '/^network:/{print $6}' /etc/passwd`
12 mkdir -p /var/db/
13 /usr/sbin/ntpd -s
14 }
15
16 stop() {
17 service_kill ntpd
18 }