Create the directory for the drift file (#1898)
[openwrt/svn-archive/archive.git] / net / openntpd / files / ntpd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 START=60
5 start() {
6 mkdir -p `awk -F: '/^ntp:/{print $6}' /etc/passwd`
7 mkdir -p /var/db/
8 /usr/sbin/ntpd -s
9 }
10
11 stop() {
12 killall ntpd
13 }