init script cleanup, use /etc/rc.d/ for enabled scripts, /etc/init.d/<pkgname> (enabl...
[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 }