port lots of init scripts over to rc.common (more to come)
[packages.git] / net / openntpd / files / ntpd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 start() {
5         mkdir -p `awk -F: '/^ntp:/{print $6}' /etc/passwd`
6         /usr/sbin/ntpd -s
7 }
8
9 stop() {
10         killall ntpd
11 }