2fc4bb8adf93b4d3720bd8792c951183c291ed9e
[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 /usr/sbin/ntpd -s
8 }
9
10 stop() {
11 killall ntpd
12 }