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