move busybox init scripts from base-files into the busybox package and make them...
[openwrt-10.03/.git] / package / busybox / files / cron
diff --git a/package/busybox/files/cron b/package/busybox/files/cron
new file mode 100755 (executable)
index 0000000..e78d023
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006 OpenWrt.org
+
+start () {
+       mkdir -p /var/spool/cron
+       [ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
+       crond -c /etc/crontabs
+}
+
+stop() {
+       killall crond
+}