-#!/bin/sh
-[ -d /etc/crontabs ] || mkdir -p /etc/crontabs
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006 OpenWrt.org
-[ -e /var/spool/cron/crontabs ] && {
+start () {
mkdir -p /var/spool/cron
- ln -s /etc/crontabs /var/spool/cron
-}
+ ln -s /etc/crontabs /var/spool/cron/crontabs
crond -c /etc/crontabs
+}
+
+stop() {
+ killall crond
+}